interface SourcePolicyInterface
Interface for a class that can optionally enable the sandbox mode based on a template's Twig\Source.
@author Yaakov Saxon
Hierarchy
- interface \Twig\Sandbox\SourcePolicyInterface
Expanded class hierarchy of SourcePolicyInterface
All classes that implement SourcePolicyInterface
1 file declares its use of SourcePolicyInterface
- SandboxExtension.php in vendor/
twig/ twig/ src/ Extension/ SandboxExtension.php
File
-
vendor/
twig/ twig/ src/ Sandbox/ SourcePolicyInterface.php, line 21
Namespace
Twig\SandboxView source
interface SourcePolicyInterface {
public function enableSandbox(Source $source) : bool;
}