Truncate::__construct

public Truncate::__construct(Connection $connection, $table, array $options = array()) Constructs a Truncate query object. Parameters \Drupal\Core\Database\Connection $connection: A Connection object. string $table: Name of the table to associate with this query. array $options: Array of database options. Overrides Query::__construct File core/lib/Drupal/Core/Database/Query/Truncate.php, line 31 Class Truncate General class for an abstracted TRUNCATE operation. Namespace Drupal\Core\Da

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

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

TrustedHostsRequestFactory

Provides a request factory for requests using host verification. Because the trusted host patterns for requests are stored statically, they are consulted even for fake request created with Request::create(), whose host is 'localhost' by default. Such requests would fail host verification unless 'localhost' matches one of the trusted host patterns. To circumvent this problem, this factory injects the server variables from the main request into each newly created request, so that the host is corr

TrustedHostsRequestFactory::$host

The host of the main request. Type: string File core/lib/Drupal/Core/Http/TrustedHostsRequestFactory.php, line 27 Class TrustedHostsRequestFactory Provides a request factory for requests using host verification. Namespace Drupal\Core\Http Code protected $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

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; }

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[