You are here

abstract class Twig_Extension in Translation template extractor 7.3

Same name and namespace in other branches
  1. 6.3 vendor/Twig/Extension.php \Twig_Extension

Hierarchy

Expanded class hierarchy of Twig_Extension

2 string references to 'Twig_Extension'
Twig_Environment::initGlobals in vendor/Twig/Environment.php
Twig_Environment::initRuntime in vendor/Twig/Environment.php
Initializes the runtime environment.

File

vendor/Twig/Extension.php, line 11

View source
abstract class Twig_Extension implements Twig_ExtensionInterface {

  /**
   * {@inheritdoc}
   *
   * @deprecated since 1.23 (to be removed in 2.0), implement Twig_Extension_InitRuntimeInterface instead
   */
  public function initRuntime(Twig_Environment $environment) {
  }

  /**
   * {@inheritdoc}
   */
  public function getTokenParsers() {
    return array();
  }

  /**
   * {@inheritdoc}
   */
  public function getNodeVisitors() {
    return array();
  }

  /**
   * {@inheritdoc}
   */
  public function getFilters() {
    return array();
  }

  /**
   * {@inheritdoc}
   */
  public function getTests() {
    return array();
  }

  /**
   * {@inheritdoc}
   */
  public function getFunctions() {
    return array();
  }

  /**
   * {@inheritdoc}
   */
  public function getOperators() {
    return array();
  }

  /**
   * {@inheritdoc}
   *
   * @deprecated since 1.23 (to be removed in 2.0), implement Twig_Extension_GlobalsInterface instead
   */
  public function getGlobals() {
    return array();
  }

}

Members

Namesort descending Modifiers Type Description Overrides
Twig_Extension::getFilters public function Returns a list of filters to add to the existing list. Overrides Twig_ExtensionInterface::getFilters 3
Twig_Extension::getFunctions public function Returns a list of functions to add to the existing list. Overrides Twig_ExtensionInterface::getFunctions 4
Twig_Extension::getGlobals Deprecated public function Overrides Twig_ExtensionInterface::getGlobals 1
Twig_Extension::getNodeVisitors public function Returns the node visitor instances to add to the existing list. Overrides Twig_ExtensionInterface::getNodeVisitors 5
Twig_Extension::getOperators public function Returns a list of operators to add to the existing list. Overrides Twig_ExtensionInterface::getOperators 1
Twig_Extension::getTests public function Returns a list of tests to add to the existing list. Overrides Twig_ExtensionInterface::getTests 2
Twig_Extension::getTokenParsers public function Returns the token parser instances to add to the existing list. Overrides Twig_ExtensionInterface::getTokenParsers 4
Twig_Extension::initRuntime Deprecated public function Overrides Twig_ExtensionInterface::initRuntime
Twig_ExtensionInterface::getName public function Returns the name of the extension. 8