class AttributeAllowTestClass

Test class for TwigAllowed attribute.

Hierarchy

Expanded class hierarchy of AttributeAllowTestClass

File

core/tests/Drupal/Tests/Core/Template/TwigSandboxTest.php, line 188

Namespace

Drupal\Tests\Core\Template
View source
class AttributeAllowTestClass {
  public function allowed() : string {
    return __METHOD__;
  }
  public function notAllowed() : string {
    return __METHOD__;
  }

}

Members

Title Sort descending Modifiers Object type Summary
AttributeAllowTestClass::allowed public function #[TwigAllowed]
AttributeAllowTestClass::notAllowed public function

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