TwigSandboxPolicy::$whitelisted_prefixes

An array of whitelisted method prefixes -- any method starting with one of these prefixes will be allowed.

Type: array

File

core/lib/Drupal/Core/Template/TwigSandboxPolicy.php, line 31

Class

TwigSandboxPolicy
Default sandbox policy for Twig templates.

Namespace

Drupal\Core\Template

Code

protected $whitelisted_prefixes;

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