public TwigSandboxPolicy::__construct()
Constructs a new TwigSandboxPolicy object.
File
core/lib/Drupal/Core/Template/TwigSandboxPolicy.php, line 37
Class
TwigSandboxPolicy Default sandbox policy for Twig templates.
Namespace
Drupal\Core\Template
Code
public function __construct() {
// Allow settings.php to override our default whitelisted classes, methods,
// and prefixes.
$whitelisted_classes = Settings::get('twig_sandbox_whitelisted_classes', [
// Allow any operations on t