You are here

protected function DescriptionTemplateTrait::getDescriptionTemplatePath in Examples for Developers 8

Same name and namespace in other branches
  1. 3.x src/Utility/DescriptionTemplateTrait.php \Drupal\examples\Utility\DescriptionTemplateTrait::getDescriptionTemplatePath()

Get full path to the template.

Return value

string Path string.

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

File

src/Utility/DescriptionTemplateTrait.php, line 74

Class

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

Namespace

Drupal\examples\Utility

Code

protected function getDescriptionTemplatePath() {
  return drupal_get_path('module', $this
    ->getModuleName()) . "/templates/description.html.twig";
}