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

Breadcrumb

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

class SecurityNotAllowedFunctionError

Exception thrown when a not allowed function is used in a template.

@author Martin HasoĊˆ <martin.hason@gmail.com>

Hierarchy

  • class \Twig\Error\Error extends \Twig\Error\Exception
    • class \Twig\Sandbox\SecurityError extends \Twig\Error\Error
      • class \Twig\Sandbox\SecurityNotAllowedFunctionError extends \Twig\Sandbox\SecurityError

Expanded class hierarchy of SecurityNotAllowedFunctionError

File

vendor/twig/twig/src/Sandbox/SecurityNotAllowedFunctionError.php, line 19

Namespace

Twig\Sandbox
View source
final class SecurityNotAllowedFunctionError extends SecurityError {
    private $functionName;
    public function __construct(string $message, string $functionName) {
        parent::__construct($message);
        $this->functionName = $functionName;
    }
    public function getFunctionName() : string {
        return $this->functionName;
    }

}

Members

Title Sort descending Modifiers Object type Summary
SecurityNotAllowedFunctionError::$functionName private property
SecurityNotAllowedFunctionError::getFunctionName public function
SecurityNotAllowedFunctionError::__construct public function
RSS feed
Powered by Drupal