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

Breadcrumb

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

function Template::hasMacro

File

vendor/twig/twig/src/Template.php, line 482

Class

Template
Default base class for compiled templates.

Namespace

Twig

Code

protected function hasMacro(string $name, array $context) : bool {
    if (method_exists($this, $name)) {
        return true;
    }
    if (!($parent = $this->getParent($context))) {
        return false;
    }
    return $parent->hasMacro($name, $context);
}

API Navigation

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