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

Breadcrumb

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

function SecurityNotAllowedFunctionError::__construct

File

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

Class

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

Namespace

Twig\Sandbox

Code

public function __construct(string $message, string $functionName) {
    parent::__construct($message);
    $this->functionName = $functionName;
}
RSS feed
Powered by Drupal