Skip to content

Commit ba60661

Browse files
committed
-
1 parent a81fc94 commit ba60661

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

src/Directive/FigureDirective.php

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,12 @@
99

1010
namespace SymfonyDocsBuilder\Directive;
1111

12-
use Doctrine\RST\Directives\Directive;
12+
use Doctrine\RST\Directives\SubDirective;
13+
use Doctrine\RST\Nodes\FigureNode;
1314
use Doctrine\RST\Nodes\Node;
1415
use Doctrine\RST\Parser;
1516

16-
class FigureDirective extends Directive
17+
class FigureDirective extends SubDirective
1718
{
1819
public function getName(): string
1920
{
@@ -22,11 +23,13 @@ public function getName(): string
2223

2324
final public function processSub(Parser $parser, ?Node $document, string $variable, string $data, array $options): ?Node
2425
{
25-
die('here');exit;
2626
$wrapperDiv = $parser->renderTemplate(
2727
'directives/figure.html.twig',
2828
[
2929
'custom_css_classes' => $options['class'] ?? '',
30+
'alt' => $options['alt'] ?? '',
31+
'height' => $options['height'] ?? null,
32+
'width' => $options['width'] ?? null,
3033
]
3134
);
3235

0 commit comments

Comments
 (0)