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

Breadcrumb

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

function TemplateWrapper::hasBlock

File

vendor/twig/twig/src/TemplateWrapper.php, line 45

Class

TemplateWrapper
Exposes a template to userland.

Namespace

Twig

Code

public function hasBlock(string $name, array $context = []) : bool {
    return $this->template
        ->hasBlock($name, $context);
}
RSS feed
Powered by Drupal