You are here

public function StringLoader::exists in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/lib/Drupal/Core/Template/Loader/StringLoader.php \Drupal\Core\Template\Loader\StringLoader::exists()

File

core/lib/Drupal/Core/Template/Loader/StringLoader.php, line 33
Contains \Drupal\Core\Template\Loader\StringLoader.

Class

StringLoader
Loads string templates, also known as inline templates.

Namespace

Drupal\Core\Template\Loader

Code

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