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

Breadcrumb

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

class SecurityNotAllowedPropertyError

Exception thrown when a not allowed class property 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\SecurityNotAllowedPropertyError extends \Twig\Sandbox\SecurityError

Expanded class hierarchy of SecurityNotAllowedPropertyError

2 files declare their use of SecurityNotAllowedPropertyError
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/SecurityNotAllowedPropertyError.php, line 19

Namespace

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

}

Members

Title Sort descending Modifiers Object type Summary
SecurityNotAllowedPropertyError::$className private property
SecurityNotAllowedPropertyError::$propertyName private property
SecurityNotAllowedPropertyError::getClassName public function
SecurityNotAllowedPropertyError::getPropertyName public function
SecurityNotAllowedPropertyError::__construct public function
RSS feed
Powered by Drupal