KeyValueEntityStorage::__construct

public KeyValueEntityStorage::__construct(EntityTypeInterface $entity_type, KeyValueStoreInterface $key_value_store, UuidInterface $uuid_service, LanguageManagerInterface $language_manager) Constructs a new KeyValueEntityStorage. Parameters \Drupal\Core\Entity\EntityTypeInterface $entity_type: The entity type. \Drupal\Core\KeyValueStore\KeyValueStoreInterface $key_value_store: The key value store. \Drupal\Component\Uuid\UuidInterface $uuid_service: The UUID service. \Drupal\Core\Language\Langu

EntityStorageInterface::getEntityType

public EntityStorageInterface::getEntityType() Gets the entity type definition. Return value \Drupal\Core\Entity\EntityTypeInterface Entity type definition. File core/lib/Drupal/Core/Entity/EntityStorageInterface.php, line 189 Class EntityStorageInterface Defines the interface for entity storage classes. Namespace Drupal\Core\Entity Code public function getEntityType();

EntityViewBuilder::viewFieldItem

public EntityViewBuilder::viewFieldItem(FieldItemInterface $item, $display = array()) Builds a renderable array for a single field item. Parameters \Drupal\Core\Field\FieldItemInterface $item: FieldItem to be displayed. string|array $display_options: Can be either the name of a view mode, or an array of display settings. See EntityViewBuilderInterface::viewField() for more information. Return value array A renderable array for the field item. Overrides EntityViewBuilderInterface::viewFieldIte

tracker_node_predelete

tracker_node_predelete(EntityInterface $node, $arg = 0) Implements hook_ENTITY_TYPE_predelete() for node entities. Deletes tracking information for a node. File core/modules/tracker/tracker.module, line 191 Tracks recent content posted by a user or users. Code function tracker_node_predelete(EntityInterface $node, $arg = 0) { db_delete('tracker_node') ->condition('nid', $node->id()) ->execute(); db_delete('tracker_user') ->condition('nid', $node->id()) ->

ExtensionDiscovery::process

protected ExtensionDiscovery::process(array $all_files) Processes the filtered and sorted list of extensions. Extensions discovered in later search paths override earlier, unless they are not compatible with the current version of Drupal core. Parameters \Drupal\Core\Extension\Extension[] $all_files: The sorted list of all extensions that were found. Return value \Drupal\Core\Extension\Extension[] The filtered list of extensions, keyed by extension name. File core/lib/Drupal/Core/Extension/Ex

EntityHandlerInterface

Defines an interface for entity handlers. This interface can be implemented by entity handlers that require dependency injection. Hierarchy interface \Drupal\Core\Entity\EntityHandlerInterface Related topics Entity API Describes how to define and manipulate content and configuration entities. File core/lib/Drupal/Core/Entity/EntityHandlerInterface.php, line 15 Namespace Drupal\Core\Entity Members Name Modifiers Type Description EntityHandlerInterface::createInstance public

ExceptionJsonSubscriber::on415

public ExceptionJsonSubscriber::on415(GetResponseForExceptionEvent $event) Handles a 415 error for JSON. Parameters \Symfony\Component\HttpKernel\Event\GetResponseForExceptionEvent $event: The event to process. File core/lib/Drupal/Core/EventSubscriber/ExceptionJsonSubscriber.php, line 91 Class ExceptionJsonSubscriber Default handling for JSON errors. Namespace Drupal\Core\EventSubscriber Code public function on415(GetResponseForExceptionEvent $event) { $response = new JsonResponse(

HtmlResponseAttachmentsProcessor::__construct

public HtmlResponseAttachmentsProcessor::__construct(AssetResolverInterface $asset_resolver, ConfigFactoryInterface $config_factory, AssetCollectionRendererInterface $css_collection_renderer, AssetCollectionRendererInterface $js_collection_renderer, RequestStack $request_stack, RendererInterface $renderer, ModuleHandlerInterface $module_handler) Constructs a HtmlResponseAttachmentsProcessor object. Parameters \Drupal\Core\Asset\AssetResolverInterface $asset_resolver: An asset resolver. \Drupal

DataType::$primitive_type

The pre-defined primitive type that this data type maps to. If set, it must be a constant defined by \Drupal\Core\TypedData\Primitive such as \Drupal\Core\TypedData\Primitive::STRING. Type: string File core/lib/Drupal/Core/TypedData/Annotation/DataType.php, line 93 Class DataType Defines a data type annotation object. Namespace Drupal\Core\TypedData\Annotation Code public $primitive_type;

DraggableListBuilder::buildHeader

public DraggableListBuilder::buildHeader() Builds the header row for the entity listing. Return value array A render array structure of header strings. Overrides EntityListBuilder::buildHeader See also \Drupal\Core\Entity\EntityListBuilder::render() File core/lib/Drupal/Core/Config/Entity/DraggableListBuilder.php, line 59 Class DraggableListBuilder Defines a class to build a draggable listing of configuration entities. Namespace Drupal\Core\Config\Entity Code public function buildHea