public function StringLoader::exists in Drupal 10
Same name and namespace in other branches
- 8 core/lib/Drupal/Core/Template/Loader/StringLoader.php \Drupal\Core\Template\Loader\StringLoader::exists()
- 9 core/lib/Drupal/Core/Template/Loader/StringLoader.php \Drupal\Core\Template\Loader\StringLoader::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\LoaderCode
public function exists($name) {
if (strpos($name, '{# inline_template_start #}') === 0) {
return TRUE;
}
else {
return FALSE;
}
}