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

Breadcrumb

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

function Environment::getFunctions

Gets registered functions.

Be warned that this method cannot return functions defined with registerUndefinedFunctionCallback.

@internal

Return value

TwigFunction[]

See also

registerUndefinedFunctionCallback

File

vendor/twig/twig/src/Environment.php, line 805

Class

Environment
Stores the Twig configuration and renders templates.

Namespace

Twig

Code

public function getFunctions() : array {
    return $this->extensionSet
        ->getFunctions();
}
RSS feed
Powered by Drupal