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

Breadcrumb

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

function ArrayLoader::exists

Overrides LoaderInterface::exists

File

vendor/twig/twig/src/Loader/ArrayLoader.php, line 53

Class

ArrayLoader
Loads a template from an array.

Namespace

Twig\Loader

Code

public function exists(string $name) : bool {
    return isset($this->templates[$name]);
}

API Navigation

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