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

Breadcrumb

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

function SecurityNotAllowedMethodError::__construct

File

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

Class

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

Namespace

Twig\Sandbox

Code

public function __construct(string $message, string $className, string $methodName) {
    parent::__construct($message);
    $this->className = $className;
    $this->methodName = $methodName;
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal