excerpt() публичный Метод

Create an excerpt for the given content.
public excerpt ( Content | array | string $content, integer $length = 200, array | string | null $focus = null ) : string
$content Bolt\Legacy\Content | array | string
$length integer Defaults to 200 characters
$focus array | string | null
Результат string Resulting excerpt
Пример #1
0
 public function testExcerptNull()
 {
     $app = $this->getApp();
     $handler = new RecordHandler($app);
     $result = $handler->excerpt(null);
     $this->assertSame('', $result);
 }