Template.php

Same filename in other branches
  1. 7.x themes/seven/template.php
  2. 7.x themes/garland/template.php
  3. 7.x themes/bartik/template.php
  4. 7.x modules/simpletest/tests/themes/test_theme/template.php
  5. 9 core/tests/Drupal/Tests/Component/Annotation/Doctrine/Fixtures/Annotation/Template.php
  6. 8.9.x core/tests/Drupal/Tests/Component/Annotation/Doctrine/Fixtures/Annotation/Template.php
  7. 10 core/tests/Drupal/Tests/Component/Annotation/Doctrine/Fixtures/Annotation/Template.php

Namespace

Drupal\Tests\Component\Annotation\Doctrine\Fixtures\Annotation

File

core/tests/Drupal/Tests/Component/Annotation/Doctrine/Fixtures/Annotation/Template.php

View source
<?php

declare (strict_types=1);
namespace Drupal\Tests\Component\Annotation\Doctrine\Fixtures\Annotation;


/** @Annotation */
class Template {
    private $name;
    public function __construct(array $values) {
        $this->name = isset($values['value']) ? $values['value'] : null;
    }

}

Classes

Title Deprecated Summary
Template

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.