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

Breadcrumb

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

function StringLoader::exists

Overrides LoaderInterface::exists

File

core/lib/Drupal/Core/Template/Loader/StringLoader.php, line 31

Class

StringLoader
Loads string templates, also known as inline templates.

Namespace

Drupal\Core\Template\Loader

Code

public function exists($name) {
    if (str_starts_with($name, '{# inline_template_start #}')) {
        return TRUE;
    }
    else {
        return FALSE;
    }
}

API Navigation

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