Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. SourcePolicyInterface.php

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\Sandbox
View source
interface SourcePolicyInterface {
    public function enableSandbox(Source $source) : bool;

}

Members

Title Sort descending Modifiers Object type Summary
SourcePolicyInterface::enableSandbox public function
RSS feed
Powered by Drupal