An array of whitelisted methods in the form of methodName => TRUE. File core/lib/Drupal/Core/Temp
An array of class names for which any method calls are allowed. File core/lib/Drupal/Core/Template/TwigSandboxPolicy
Default sandbox policy for Twig templates. Twig's sandbox extension is usually used to evaluate untrusted code by limiting access to potentially
public TwigSandboxPolicy::checkPropertyAllowed($obj, $property)
An array of whitelisted method prefixes -- any method starting with one of these prefixes will be allowed. File
public TwigSandboxPolicy::checkSecurity($tags, $filters, $f
public TwigSandboxPolicy::checkMethodAllowed($obj, $method)
public TwigSandboxPolicy::__construct()