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

Breadcrumb

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

class SecurityNotAllowedMethodError

Exception thrown when a not allowed class method is used in a template.

@author Kit Burton-Senior <mail@kitbs.com>

Hierarchy

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

Expanded class hierarchy of SecurityNotAllowedMethodError

2 files declare their use of SecurityNotAllowedMethodError
CoreExtension.php in vendor/twig/twig/src/Extension/CoreExtension.php
SandboxExtension.php in vendor/twig/twig/src/Extension/SandboxExtension.php

File

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

Namespace

Twig\Sandbox
View source
final class SecurityNotAllowedMethodError extends SecurityError {
    private $className;
    private $methodName;
    public function __construct(string $message, string $className, string $methodName) {
        parent::__construct($message);
        $this->className = $className;
        $this->methodName = $methodName;
    }
    public function getClassName() : string {
        return $this->className;
    }
    public function getMethodName() {
        return $this->methodName;
    }

}

Members

Title Sort descending Modifiers Object type Summary
SecurityNotAllowedMethodError::$className private property
SecurityNotAllowedMethodError::$methodName private property
SecurityNotAllowedMethodError::getClassName public function
SecurityNotAllowedMethodError::getMethodName public function
SecurityNotAllowedMethodError::__construct public function
RSS feed
Powered by Drupal