DrupalKernel::validateHostnameLength

protected static DrupalKernel::validateHostnameLength($host) Validates a hostname length. Parameters string $host: A hostname. Return value bool TRUE if the length is appropriate, or FALSE otherwise. File core/lib/Drupal/Core/DrupalKernel.php, line 1435 Class DrupalKernel The DrupalKernel class is the core of Drupal itself. Namespace Drupal\Core Code protected static function validateHostnameLength($host) { // Limit the length of the host name to 1000 bytes to prevent DoS attacks

DynamicPageCacheSubscriber::shouldCacheResponse

protected DynamicPageCacheSubscriber::shouldCacheResponse(CacheableResponseInterface $response) Whether the given response should be cached by Dynamic Page Cache. We consider any response that has cacheability metadata meeting the auto- placeholdering conditions to be uncacheable. Because those conditions indicate poor cacheability, and if it doesn't make sense to cache parts of a page, then neither does it make sense to cache an entire page. But note that auto-placeholdering avoids such cachea

DynamicPageCacheSubscriber::renderArrayToResponse

protected DynamicPageCacheSubscriber::renderArrayToResponse(array $render_array) Gets the embedded Response object in a render array. Parameters array $render_array: A render array with a #response property. Return value \Drupal\Core\Cache\CacheableResponseInterface The cacheable response object. See also responseToRenderArray() File core/modules/dynamic_page_cache/src/EventSubscriber/DynamicPageCacheSubscriber.php, line 300 Class DynamicPageCacheSubscriber Returns cached responses as e

InaccessibleMenuLink::getTitle

public InaccessibleMenuLink::getTitle() Returns the localized title to be shown for this link. Return value string The title of the menu link. Overrides MenuLinkInterface::getTitle File core/lib/Drupal/Core/Menu/InaccessibleMenuLink.php, line 40 Class InaccessibleMenuLink A menu link plugin for wrapping another menu link, in sensitive situations. Namespace Drupal\Core\Menu Code public function getTitle() { return $this->t('Inaccessible'); }

StatementPrefetch::$defaultFetchOptions

Holds supplementary default fetch options. Type: Array File core/lib/Drupal/Core/Database/StatementPrefetch.php, line 115 Class StatementPrefetch An implementation of StatementInterface that prefetches all data. Namespace Drupal\Core\Database Code protected $defaultFetchOptions = array( 'class' => 'stdClass', 'constructor_args' => array(), 'object' => NULL, 'column' => 0, );

FieldStorageDefinitionListener::onFieldStorageDefinitionUpdate

public FieldStorageDefinitionListener::onFieldStorageDefinitionUpdate(FieldStorageDefinitionInterface $storage_definition, FieldStorageDefinitionInterface $original) Reacts to the update of a field storage definition. Parameters \Drupal\Core\Field\FieldStorageDefinitionInterface $storage_definition: The field being updated. \Drupal\Core\Field\FieldStorageDefinitionInterface $original: The original storage definition; i.e., the definition before the update. Throws \Drupal\Core\Entity\Exception

DynamicPageCacheSubscriber::responseToRenderArray

protected DynamicPageCacheSubscriber::responseToRenderArray(CacheableResponseInterface $response) Embeds a Response object in a render array so that RenderCache can cache it. @todo Refactor/remove once https://www.drupal.org/node/2551419 lands. Parameters \Drupal\Core\Cache\CacheableResponseInterface $response: A cacheable response. Return value array A render array that embeds the given cacheable response object, with the cacheability metadata of the response object present in the #cache pro

FieldStorageDefinitionListener::onFieldStorageDefinitionCreate

public FieldStorageDefinitionListener::onFieldStorageDefinitionCreate(FieldStorageDefinitionInterface $storage_definition) Reacts to the creation of a field storage definition. Parameters \Drupal\Core\Field\FieldStorageDefinitionInterface $storage_definition: The definition being created. Overrides FieldStorageDefinitionListenerInterface::onFieldStorageDefinitionCreate File core/lib/Drupal/Core/Field/FieldStorageDefinitionListener.php, line 67 Class FieldStorageDefinitionListener Reacts t

template_preprocess_ckeditor_settings_toolbar

template_preprocess_ckeditor_settings_toolbar(&$variables) Prepares variables for CKEditor settings toolbar templates. Default template: ckeditor-settings-toolbar.html.twig. Parameters array $variables: An associative array containing: editor: An editor object. plugins: A list of plugins. active_buttons: A list of disabled buttons. disabled_buttons: A list of disabled buttons. multiple_buttons: A list of multiple buttons that may be added multiple times. File core/modules/ckeditor/c

RecursiveValidator::$contextFactory

Type: \Symfony\Component\Validator\Context\ExecutionContextFactoryInterface File core/lib/Drupal/Core/TypedData/Validation/RecursiveValidator.php, line 23 Class RecursiveValidator Defines a recursive validator for Typed Data. Namespace Drupal\Core\TypedData\Validation Code protected $contextFactory;