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::$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

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

TrustedRedirectResponse

Provides a redirect response which contains trusted URLs. Use this class in case you know that you want to redirect to an external URL. Hierarchy class \Symfony\Component\HttpFoundation\RedirectResponse extends \Symfony\Component\HttpFoundation\Response class \Drupal\Component\HttpFoundation\SecuredRedirectResponseclass \Drupal\Core\Routing\CacheableSecuredRedirectResponse implements CacheableResponseInterface uses CacheableResponseTraitclass \Drupal\Core\Routing\TrustedRedirectResponse uses Lo

TrustedRedirectResponse::$trustedUrls

A list of trusted URLs, which are safe to redirect to. Type: string[] File core/lib/Drupal/Core/Routing/TrustedRedirectResponse.php, line 19 Class TrustedRedirectResponse Provides a redirect response which contains trusted URLs. Namespace Drupal\Core\Routing Code protected $trustedUrls = array();

TrustedRedirectResponse::isSafe

protected TrustedRedirectResponse::isSafe($url) Returns whether the URL is considered as safe to redirect to. Parameters string $url: The URL checked for safety. Return value bool Overrides SecuredRedirectResponse::isSafe File core/lib/Drupal/Core/Routing/TrustedRedirectResponse.php, line 45 Class TrustedRedirectResponse Provides a redirect response which contains trusted URLs. Namespace Drupal\Core\Routing Code protected function isSafe($url) { return !empty($this->trustedUrls[

Truncate::__toString

public Truncate::__toString() Implements PHP magic __toString method to convert the query to a string. Return value string The prepared statement. Overrides Truncate::__toString File core/lib/Drupal/Core/Database/Driver/sqlite/Truncate.php, line 14 Class Truncate SQLite implementation of \Drupal\Core\Database\Query\Truncate. Namespace Drupal\Core\Database\Driver\sqlite Code public function __toString() { // Create a sanitized comment string to prepend to the query. $comments = $th

Truncate::__toString

public Truncate::__toString() Implements PHP magic __toString method to convert the query to a string. Return value string The prepared statement. Overrides Query::__toString File core/lib/Drupal/Core/Database/Query/Truncate.php, line 67 Class Truncate General class for an abstracted TRUNCATE operation. Namespace Drupal\Core\Database\Query Code public function __toString() { // Create a sanitized comment string to prepend to the query. $comments = $this->connection->makeComm

TrustedHostsRequestFactory::__construct

public TrustedHostsRequestFactory::__construct($host) Creates a new TrustedHostsRequestFactory. Parameters string $host: The host of the main request. File core/lib/Drupal/Core/Http/TrustedHostsRequestFactory.php, line 35 Class TrustedHostsRequestFactory Provides a request factory for requests using host verification. Namespace Drupal\Core\Http Code public function __construct($host) { $this->host = (string) $host; }

TrustedHostsRequestFactory::createRequest

public TrustedHostsRequestFactory::createRequest(array $query = array(), array $request = array(), array $attributes = array(), array $cookies = array(), array $files = array(), array $server = array(), $content = NULL) Creates a new request object. Parameters array $query: (optional) The query (GET) or request (POST) parameters. array $request: (optional) An array of request variables. array $attributes: (optioanl) An array of attributes. array $cookies: (optional) The request cookies ($_COOK