You are here

protected function DescriptionTemplateTrait::getDescriptionVariables in Popup 8

Variables to act as context to the twig template file.

Return value

array Associative array that defines context for a template.

1 call to DescriptionTemplateTrait::getDescriptionVariables()
DescriptionTemplateTrait::description in src/Utility/DescriptionTemplateTrait.php
Generate a render array with our templated content.

File

src/Utility/DescriptionTemplateTrait.php, line 61

Class

DescriptionTemplateTrait
Trait to implement a "drop-in" template for Example's controllers.

Namespace

Drupal\popup\Utility

Code

protected function getDescriptionVariables() {
  $variables = [
    'module' => $this
      ->getModuleName(),
  ];
  return $variables;
}