1 | <?php |
||
21 | class FrontMatterFilter implements FilterInterface |
||
22 | { |
||
23 | /** @var FrontMatterInterface */ |
||
24 | private $parser; |
||
25 | |||
26 | /** @var FilterInterface */ |
||
27 | private $filter; |
||
28 | |||
29 | public function __construct(FrontMatterInterface $parser, FilterInterface $filter) |
||
34 | |||
35 | /** |
||
36 | * @param array<string, mixed> $options |
||
37 | */ |
||
38 | public function isOptimizable(RendererAbstract $renderer, Filter $node, $options): bool |
||
42 | |||
43 | /** |
||
44 | * @param array<string, mixed> $options |
||
45 | */ |
||
46 | public function optimize(RendererAbstract $renderer, Filter $node, $options): string |
||
50 | |||
51 | /** |
||
52 | * @param string $content |
||
53 | * @param array<mixed, mixed> $context |
||
54 | * @param array<string, mixed> $options |
||
55 | */ |
||
56 | public function filter($content, array $context, $options): Document |
||
63 | } |
||
64 |