CookiesCacheContext::getLabel

public static CookiesCacheContext::getLabel() Returns the label of the cache context. Return value string The label of the cache context. Overrides CalculatedCacheContextInterface::getLabel See also Cache File core/lib/Drupal/Core/Cache/Context/CookiesCacheContext.php, line 19 Class CookiesCacheContext Defines the CookiesCacheContext service, for "per cookie" caching. Namespace Drupal\Core\Cache\Context Code public static function getLabel() { return t('HTTP cookies'); }

RouteMatch::$route

The route. Type: \Symfony\Component\Routing\Route File core/lib/Drupal/Core/Routing/RouteMatch.php, line 27 Class RouteMatch Default object representing the results of routing. Namespace Drupal\Core\Routing Code protected $route;

EntityAutocomplete::validateEntityAutocomplete

public static EntityAutocomplete::validateEntityAutocomplete(array &$element, FormStateInterface $form_state, array &$complete_form) Form element validation handler for entity_autocomplete elements. File core/lib/Drupal/Core/Entity/Element/EntityAutocomplete.php, line 151 Class EntityAutocomplete Provides an entity autocomplete form element. Namespace Drupal\Core\Entity\Element Code public static function validateEntityAutocomplete(array &$element, FormStateInterface $form_

EntityFormDisplay::movePropertyPathViolationsRelativeToField

protected EntityFormDisplay::movePropertyPathViolationsRelativeToField($field_name, ConstraintViolationListInterface $violations) Moves the property path to be relative to field level. Parameters string $field_name: The field name. \Symfony\Component\Validator\ConstraintViolationListInterface $violations: The violations. Return value \Symfony\Component\Validator\ConstraintViolationList A new constraint violation list with the changed property path. File core/lib/Drupal/Core/Entity/Entity/Enti

MailManager::__construct

public MailManager::__construct(\Traversable $namespaces, CacheBackendInterface $cache_backend, ModuleHandlerInterface $module_handler, ConfigFactoryInterface $config_factory, LoggerChannelFactoryInterface $logger_factory, TranslationInterface $string_translation, RendererInterface $renderer) Constructs the MailManager object. Parameters \Traversable $namespaces: An object that implements \Traversable which contains the root paths keyed by the corresponding namespace to look for plugin impleme

EntityType::hasRouteProviders

public EntityType::hasRouteProviders() Indicates if this entity type has any route provider. Return value bool Overrides EntityTypeInterface::hasRouteProviders File core/lib/Drupal/Core/Entity/EntityType.php, line 523 Class EntityType Provides an implementation of an entity type and its metadata. Namespace Drupal\Core\Entity Code public function hasRouteProviders() { return !empty($this->handlers['route_provider']); }

SearchController

Route controller for search. Hierarchy class \Drupal\Core\Controller\ControllerBase implements ContainerInjectionInterface uses LoggerChannelTrait, LinkGeneratorTrait, RedirectDestinationTrait, UrlGeneratorTrait, StringTranslationTraitclass \Drupal\search\Controller\SearchController File core/modules/search/src/Controller/SearchController.php, line 16 Namespace Drupal\search\Controller Members Name Modifiers Type Description ControllerBase::$configFactory protected proper

SearchPageFormBase::exists

public SearchPageFormBase::exists($id) Determines if the search page entity already exists. Parameters string $id: The search configuration ID. Return value bool TRUE if the search configuration exists, FALSE otherwise. File core/modules/search/src/Form/SearchPageFormBase.php, line 133 Class SearchPageFormBase Provides a base form for search pages. Namespace Drupal\search\Form Code public function exists($id) { $entity = $this->entityQuery->get('search_page') ->conditi

Transaction::__destruct

public Transaction::__destruct() File core/lib/Drupal/Core/Database/Transaction.php, line 66 Class Transaction A wrapper class for creating and managing database transactions. Namespace Drupal\Core\Database Code public function __destruct() { // If we rolled back then the transaction would have already been popped. if (!$this->rolledBack) { $this->connection->popTransaction($this->name); } }

MainContentViewSubscriber::$mainContentRenderers

The available main content renderer services, keyed per format. Type: array File core/lib/Drupal/Core/EventSubscriber/MainContentViewSubscriber.php, line 46 Class MainContentViewSubscriber View subscriber rendering main content render arrays into responses. Namespace Drupal\Core\EventSubscriber Code protected $mainContentRenderers;