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

Breadcrumb

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

function DefinedTest::compile

Overrides TestExpression::compile

File

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

Class

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

Namespace

Twig\Node\Expression\Test

Code

public function compile(Compiler $compiler) : void {
    $compiler->subcompile($this->getNode('node'));
}

API Navigation

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