diff --git a/src/Plugin/Styleguide/DefaultStyleguide.php b/src/Plugin/Styleguide/DefaultStyleguide.php
index 6c808d0..3960ae2 100644
--- a/src/Plugin/Styleguide/DefaultStyleguide.php
+++ b/src/Plugin/Styleguide/DefaultStyleguide.php
@@ -197,26 +197,20 @@ class DefaultStyleguide extends StyleguidePluginBase {
],
],
);
- $items['figcaption'] = array(
- 'title' => $this->t('Figcaption'),
- 'content' => [
- '#type' => 'inline_template',
- '#template' => '{{ pre }} {{ figcaption }} {{ post }}.',
- '#context' => [
- 'pre' => $this->generator->words(3, 'ucfirst'),
- 'figcaption' => $this->generator->words(3),
- 'post' => $this->generator->words(4),
- ],
- ],
- );
$items['figure'] = array(
- 'title' => $this->t('Figure'),
+ 'title' => $this->t('Figure with figcaption'),
'content' => [
'#type' => 'inline_template',
- '#template' => '{{ pre }} {{ post }}.',
+ '#template' => '{{ pre }} {{ post }}.',
'#context' => [
'pre' => $this->generator->words(3, 'ucfirst'),
- 'figure' => $this->generator->words(3),
+ 'figure' => [
+ '#theme' => 'image',
+ '#uri' => $this->generator->image('horizontal'),
+ '#alt' => $this->t('My image'),
+ '#title' => $this->t('My image'),
+ ],
+ 'figcaption' => $this->generator->words(3),
'post' => $this->generator->words(4),
],
],