FilesystemLoader::$allowedFileExtensions

Same name in other branches
  1. 9 core/lib/Drupal/Core/Template/Loader/FilesystemLoader.php \Drupal\Core\Template\Loader\FilesystemLoader::allowedFileExtensions
  2. 10 core/lib/Drupal/Core/Template/Loader/FilesystemLoader.php \Drupal\Core\Template\Loader\FilesystemLoader::allowedFileExtensions

Allowed file extensions.

Type: string[]

File

core/lib/Drupal/Core/Template/Loader/FilesystemLoader.php, line 24

Class

FilesystemLoader
Loads templates from the filesystem.

Namespace

Drupal\Core\Template\Loader

Code

protected $allowedFileExtensions = [
    'css',
    'html',
    'js',
    'svg',
    'twig',
];

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.