AdminRouteSubscriber

Adds the _admin_route option to each admin route. Hierarchy class \Drupal\Core\Routing\RouteSubscriberBase implements EventSubscriberInterfaceclass \Drupal\system\EventSubscriber\AdminRouteSubscriber File core/modules/system/src/EventSubscriber/AdminRouteSubscriber.php, line 12 Namespace Drupal\system\EventSubscriber Members Name Modifiers Type Description AdminRouteSubscriber::alterRoutes protected function Alters existing routes for a specific collection. Overrides Ro

ConfigTranslationController::$pathProcessor

The path processor service. Type: \Drupal\Core\PathProcessor\InboundPathProcessorInterface File core/modules/config_translation/src/Controller/ConfigTranslationController.php, line 53 Class ConfigTranslationController Provides page callbacks for the configuration translation interface. Namespace Drupal\config_translation\Controller Code protected $pathProcessor;

ConfigEntityBase::$originalId

The original ID of the configuration entity. The ID of a configuration entity is a unique string (machine name). When a configuration entity is updated and its machine name is renamed, the original ID needs to be known. Type: string File core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php, line 35 Class ConfigEntityBase Defines a base configuration entity class. Namespace Drupal\Core\Config\Entity Code protected $originalId;

FieldStorageConfig::getCardinality

public FieldStorageConfig::getCardinality() Returns the maximum number of items allowed for the field. Possible values are positive integers or FieldStorageDefinitionInterface::CARDINALITY_UNLIMITED. Return value int The field cardinality. Overrides FieldStorageDefinitionInterface::getCardinality File core/modules/field/src/Entity/FieldStorageConfig.php, line 629 Class FieldStorageConfig Defines the Field storage configuration entity. Namespace Drupal\field\Entity Code public function

PlaceholderGenerator::createPlaceholder

public PlaceholderGenerator::createPlaceholder(array $element) Turns the given element into a placeholder. Placeholdering allows us to avoid "poor cacheability contamination": this maps the current render array to one that only has #markup and #attached, and #attached contains a placeholder with this element's prior cacheability metadata. In other words: this placeholder is perfectly cacheable, the placeholder replacement logic effectively cordons off poor cacheability. Parameters array $eleme

TextFormat::getSourceElement

public TextFormat::getSourceElement(LanguageInterface $source_language, $source_config) Returns the source element for a given configuration definition. This can be either a render array that actually outputs the source values directly or a read-only form element with the source values depending on what is considered to provide a more intuitive user interface for the translator. Parameters \Drupal\Core\Language\LanguageInterface $source_language: Thee source language of the configuration objec

BlockInterface::getRegion

public BlockInterface::getRegion() Returns the region this block is placed in. Return value string The region this block is placed in. File core/modules/block/src/BlockInterface.php, line 44 Class BlockInterface Provides an interface defining a block entity. Namespace Drupal\block Code public function getRegion();

ForumController::$commentEntityTypeDefinition

Comment entity type, we need to get cache tags from here. Type: \Drupal\Core\Entity\EntityTypeInterface File core/modules/forum/src/Controller/ForumController.php, line 85 Class ForumController Controller routines for forum routes. Namespace Drupal\forum\Controller Code protected $commentEntityTypeDefinition;

DataDefinition::createFromDataType

public static DataDefinition::createFromDataType($type) Creates a new data definition object. This method is typically used by \Drupal\Core\TypedData\TypedDataManager::createDataDefinition() to build a definition object for an arbitrary data type. When the definition class is known, it is recommended to directly use the static create() method on that class instead; e.g.: $map_definition = \Drupal\Core\TypedData\MapDataDefinition::create(); Parameters string $data_type: The data type, for wh

ConfigEntityBase::$uuid

The UUID for this entity. Type: string File core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php, line 49 Class ConfigEntityBase Defines a base configuration entity class. Namespace Drupal\Core\Config\Entity Code protected $uuid;