You are here

abstract class Twig_Extension in Zircon Profile 8

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

Hierarchy

Expanded class hierarchy of Twig_Extension

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

File

vendor/twig/twig/lib/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
Twig_Extension::getFunctions public function Returns a list of functions to add to the existing list. Overrides Twig_ExtensionInterface::getFunctions
Twig_Extension::getGlobals Deprecated public function Overrides Twig_ExtensionInterface::getGlobals
Twig_Extension::getNodeVisitors public function Returns the node visitor instances to add to the existing list. Overrides Twig_ExtensionInterface::getNodeVisitors
Twig_Extension::getOperators public function Returns a list of operators to add to the existing list. Overrides Twig_ExtensionInterface::getOperators
Twig_Extension::getTests public function Returns a list of tests to add to the existing list. Overrides Twig_ExtensionInterface::getTests
Twig_Extension::getTokenParsers public function Returns the token parser instances to add to the existing list. Overrides Twig_ExtensionInterface::getTokenParsers
Twig_Extension::initRuntime Deprecated public function Overrides Twig_ExtensionInterface::initRuntime
Twig_ExtensionInterface::getName public function Returns the name of the extension.