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

Breadcrumb

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

function Environment::getExtension

@template TExtension of ExtensionInterface

Parameters

class-string<TExtension> $class:

Return value

TExtension

File

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

Class

Environment
Stores the Twig configuration and renders templates.

Namespace

Twig

Code

public function getExtension(string $class) : ExtensionInterface {
    return $this->extensionSet
        ->getExtension($class);
}
RSS feed
Powered by Drupal