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

Breadcrumb

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

function Parser::setParent

File

vendor/twig/twig/src/Parser.php, line 348

Class

Parser
@author Fabien Potencier <fabien@symfony.com>

Namespace

Twig

Code

public function setParent(?Node $parent) : void {
    if (null === $parent) {
        trigger_deprecation('twig/twig', '3.12', 'Passing "null" to "%s()" is deprecated.', __METHOD__);
    }
    if (null !== $this->parent) {
        throw new SyntaxError('Multiple extends tags are forbidden.', $parent->getTemplateLine(), $parent->getSourceContext());
    }
    $this->parent = $parent;
}

API Navigation

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