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\ContentBlock, craft\elements\Entry, craft\elements\GlobalSet, craft\elements\Tag, craft\elements\User, craft\fields\data\JsonData, craft\test\mockclasses\elements\ExampleElement
Since
5.10.7

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