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

Breadcrumb

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

function Environment::mergeGlobals

Deprecated

since Twig 3.14

File

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

Class

Environment
Stores the Twig configuration and renders templates.

Namespace

Twig

Code

public function mergeGlobals(array $context) : array {
    trigger_deprecation('twig/twig', '3.14', 'The "%s" method is deprecated.', __METHOD__);
    return $context + $this->getGlobals();
}

API Navigation

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