SecurityPolicy ​
- Type
- Class
- Namespace
- craft\web\twig
- Inherits
- craft\web\twig\SecurityPolicy
- Implements
Twig\Sandbox\SecurityPolicyInterface- Since
- 4.17.0
Security policy
Public Methods ​
__construct() ​
Arguments ​
$allowedTags$allowedFilters$allowedFunctions$allowedMethods$allowedProperties$allowedClasses
checkMethodAllowed() ​
Arguments ​
$obj$method
checkPropertyAllowed() ​
Arguments ​
$obj$property
checkSecurity() ​
Arguments ​
$tags$filters$functions
getAllowedClasses() ​
Returns ​
class-string[]
getAllowedFilters() ​
Returns ​
string[]
getAllowedFunctions() ​
Returns ​
string[]
getAllowedMethods() ​
Returns ​
array<class-string,string[]>
getAllowedProperties() ​
Returns ​
array<class-string,string[]>
getAllowedTags() ​
Returns ​
string[]
setAllowedClasses() ​
Arguments ​
$classes(class-string[])
setAllowedFilters() ​
Arguments ​
$filters(string[])
setAllowedFunctions() ​
Arguments ​
$functions(string[])
setAllowedMethods() ​
Arguments ​
$methods(array<class-string,string[]>)
setAllowedProperties() ​
Arguments ​
$properties(array<class-string,string[]>)
setAllowedTags() ​
Arguments ​
$tags(string[])