Skip to content

AllowableInSandbox ​

Type
Interface
Namespace
craft\web\twig
Implemented by
craft\base\Element, craft\elements\Address, craft\elements\Asset, craft\elements\Category, craft\elements\Entry, craft\elements\GlobalSet, craft\elements\MatrixBlock, craft\elements\Tag, craft\elements\User, craft\test\mockclasses\elements\ExampleElement
Since
4.18.3

Interface AllowableInSandbox

View source

Public Methods ​

MethodDescription
methodAllowedInSandbox()Returns whether the given method is allowed to be called by sandboxed Twig templates.
propertyAllowedInSandbox()Returns whether the given properly is allowed to be referenced by sandboxed Twig templates.

methodAllowedInSandbox() ​

Returns whether the given method is allowed to be called by sandboxed Twig templates.

View source

Arguments ​

  • $method

propertyAllowedInSandbox() ​

Returns whether the given properly is allowed to be referenced by sandboxed Twig templates.

View source

Arguments ​

  • $property