TrustedRedirectResponse::setTrustedTargetUrl

public TrustedRedirectResponse::setTrustedTargetUrl($url) Sets the target URL to a trusted URL. Parameters string $url: A trusted URL. Return value $this File core/lib/Drupal/Core/Routing/TrustedRedirectResponse.php, line 37 Class TrustedRedirectResponse Provides a redirect response which contains trusted URLs. Namespace Drupal\Core\Routing Code public function setTrustedTargetUrl($url) { $this->trustedUrls[$url] = TRUE; return $this->setTargetUrl($url); }

TrustedRedirectResponse::__construct

public TrustedRedirectResponse::__construct($url, $status = 302, $headers = array()) Creates a redirect response so that it conforms to the rules defined for a redirect status code. Parameters string $url The URL to redirect to. The URL should be a full URL, with schema etc.,: but practically every browser redirects on paths only as well int $status The status code (302 by default): array $headers The headers (Location is always set to the given URL): Throws \InvalidArgumentException Override

TwigEnvironment

A class that defines a Twig environment for Drupal. Instances of this class are used to store the configuration and extensions, and are used to load templates from the file system or other locations. Hierarchy class \Twig_Environmentclass \Drupal\Core\Template\TwigEnvironment See also core\vendor\twig\twig\lib\Twig\Environment.php File core/lib/Drupal/Core/Template/TwigEnvironment.php, line 16 Namespace Drupal\Core\Template Members Name Modifiers Type Description TwigEnviron

TwigEnvironment::$templateClasses

Static cache of template classes. Type: array File core/lib/Drupal/Core/Template/TwigEnvironment.php, line 23 Class TwigEnvironment A class that defines a Twig environment for Drupal. Namespace Drupal\Core\Template Code protected $templateClasses;

TwigEnvironment::getTemplateClass

public TwigEnvironment::getTemplateClass($name, $index = NULL) Gets the template class associated with the given string. Parameters string $name: The name for which to calculate the template class name. int $index: The index if it is an embedded template. Return value string The template class name. Overrides Twig_Environment::getTemplateClass File core/lib/Drupal/Core/Template/TwigEnvironment.php, line 79 Class TwigEnvironment A class that defines a Twig environment for Drupal. Namesp

TwigEnvironment::renderInline

public TwigEnvironment::renderInline($template_string, array $context = array()) Renders a twig string directly. Warning: You should use the render element 'inline_template' together with the #template attribute instead of this method directly. On top of that you have to ensure that the template string is not dynamic but just an ordinary static php string, because there may be installations using read-only PHPStorage that want to generate all possible twig templates as part of a build step. So

TwigEnvironment::__construct

public TwigEnvironment::__construct($root, CacheBackendInterface $cache, $twig_extension_hash, \Twig_LoaderInterface $loader = NULL, $options = array()) Constructs a TwigEnvironment object and stores cache and storage internally. Parameters string $root: The app root. \Drupal\Core\Cache\CacheBackendInterface $cache: The cache bin. string $twig_extension_hash: The Twig extension hash. \Twig_LoaderInterface $loader: The Twig loader or loader chain. array $options: The options for the Twig enviro

TwigExtension

A class providing Drupal Twig extensions. This provides a Twig extension that registers various Drupal-specific extensions to Twig, specifically Twig functions, filter, and node visitors. Hierarchy class \Drupal\Core\Template\TwigExtension extends \Twig_Extension See also \Drupal\Core\CoreServiceProvider File core/lib/Drupal/Core/Template/TwigExtension.php, line 26 Namespace Drupal\Core\Template Members Name Modifiers Type Description TwigExtension::$dateFormatter protected

TwigExtension::$dateFormatter

The date formatter. Type: \Drupal\Core\Datetime\DateFormatterInterface File core/lib/Drupal/Core/Template/TwigExtension.php, line 54 Class TwigExtension A class providing Drupal Twig extensions. Namespace Drupal\Core\Template Code protected $dateFormatter;

TwigExtension::$renderer

The renderer. Type: \Drupal\Core\Render\RendererInterface File core/lib/Drupal/Core/Template/TwigExtension.php, line 40 Class TwigExtension A class providing Drupal Twig extensions. Namespace Drupal\Core\Template Code protected $renderer;