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

Breadcrumb

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

interface GlobalsInterface

Allows Twig extensions to add globals to the context.

@author Fabien Potencier <fabien@symfony.com>

Hierarchy

  • interface \Twig\Extension\GlobalsInterface

Expanded class hierarchy of GlobalsInterface

All classes that implement GlobalsInterface

1 file declares its use of GlobalsInterface
ExtensionSet.php in vendor/twig/twig/src/ExtensionSet.php

File

vendor/twig/twig/src/Extension/GlobalsInterface.php, line 19

Namespace

Twig\Extension
View source
interface GlobalsInterface {
    
    /**
     * @return array<string, mixed>
     */
    public function getGlobals() : array;

}

Members

Title Sort descending Modifiers Object type Summary
GlobalsInterface::getGlobals public function
RSS feed
Powered by Drupal