Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. ExtensionInterface.php

interface ExtensionInterface

Same name in this branch
  1. 11.1.x vendor/symfony/css-selector/XPath/Extension/ExtensionInterface.php \Symfony\Component\CssSelector\XPath\Extension\ExtensionInterface
  2. 11.1.x vendor/symfony/dependency-injection/Extension/ExtensionInterface.php \Symfony\Component\DependencyInjection\Extension\ExtensionInterface

Interface implemented by extension classes.

@author Fabien Potencier <fabien@symfony.com>

Hierarchy

  • interface \Twig\Extension\ExtensionInterface

Expanded class hierarchy of ExtensionInterface

All classes that implement ExtensionInterface

4 files declare their use of ExtensionInterface
CallExpression.php in vendor/twig/twig/src/Node/Expression/CallExpression.php
Environment.php in vendor/twig/twig/src/Environment.php
ExtensionSet.php in vendor/twig/twig/src/ExtensionSet.php
IntegrationTestCase.php in vendor/twig/twig/src/Test/IntegrationTestCase.php

File

vendor/twig/twig/src/Extension/ExtensionInterface.php, line 28

Namespace

Twig\Extension
View source
interface ExtensionInterface {
    
    /**
     * Returns the token parser instances to add to the existing list.
     *
     * @return TokenParserInterface[]
     */
    public function getTokenParsers();
    
    /**
     * Returns the node visitor instances to add to the existing list.
     *
     * @return NodeVisitorInterface[]
     */
    public function getNodeVisitors();
    
    /**
     * Returns a list of filters to add to the existing list.
     *
     * @return TwigFilter[]
     */
    public function getFilters();
    
    /**
     * Returns a list of tests to add to the existing list.
     *
     * @return TwigTest[]
     */
    public function getTests();
    
    /**
     * Returns a list of functions to add to the existing list.
     *
     * @return TwigFunction[]
     */
    public function getFunctions();
    
    /**
     * Returns a list of operators to add to the existing list.
     *
     * @return array<array> First array of unary operators, second array of binary operators
     *
     * @psalm-return array{
     *     array<string, array{precedence: int, precedence_change?: OperatorPrecedenceChange, class: class-string<AbstractExpression>}>,
     *     array<string, array{precedence: int, precedence_change?: OperatorPrecedenceChange, class?: class-string<AbstractExpression>, associativity: ExpressionParser::OPERATOR_*}>
     * }
     */
    public function getOperators();

}

Members

Title Sort descending Modifiers Object type Summary Overrides
ExtensionInterface::getFilters public function Returns a list of filters to add to the existing list. 1
ExtensionInterface::getFunctions public function Returns a list of functions to add to the existing list. 1
ExtensionInterface::getNodeVisitors public function Returns the node visitor instances to add to the existing list. 1
ExtensionInterface::getOperators public function Returns a list of operators to add to the existing list. 1
ExtensionInterface::getTests public function Returns a list of tests to add to the existing list. 1
ExtensionInterface::getTokenParsers public function Returns the token parser instances to add to the existing list. 1

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal