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

Breadcrumb

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

function DefinedTest::changeIgnoreStrictCheck

1 call to DefinedTest::changeIgnoreStrictCheck()
DefinedTest::__construct in vendor/twig/twig/src/Node/Expression/Test/DefinedTest.php

File

vendor/twig/twig/src/Node/Expression/Test/DefinedTest.php, line 78

Class

DefinedTest
Checks if a variable is defined in the current context.

Namespace

Twig\Node\Expression\Test

Code

private function changeIgnoreStrictCheck(GetAttrExpression $node) {
    $node->setAttribute('optimizable', false);
    $node->setAttribute('ignore_strict_check', true);
    if ($node->getNode('node') instanceof GetAttrExpression) {
        $this->changeIgnoreStrictCheck($node->getNode('node'));
    }
}

API Navigation

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