TwigSandboxPolicy::$allowed_prefixes

Same name in other branches
  1. 10 core/lib/Drupal/Core/Template/TwigSandboxPolicy.php \Drupal\Core\Template\TwigSandboxPolicy::allowed_prefixes
  2. 11.x core/lib/Drupal/Core/Template/TwigSandboxPolicy.php \Drupal\Core\Template\TwigSandboxPolicy::allowed_prefixes

Allowed method prefixes.

Any method starting with one of these prefixes will be allowed.

Type: array

File

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

Class

TwigSandboxPolicy
Default sandbox policy for Twig templates.

Namespace

Drupal\Core\Template

Code

protected $allowed_prefixes;

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