EntityStorageBase::getFromStaticCache

protected EntityStorageBase::getFromStaticCache(array $ids) Gets entities from the static cache. Parameters array $ids: If not empty, return entities that match these IDs. Return value \Drupal\Core\Entity\EntityInterface[] Array of entities from the entity cache. File core/lib/Drupal/Core/Entity/EntityStorageBase.php, line 135 Class EntityStorageBase A base entity storage class. Namespace Drupal\Core\Entity Code protected function getFromStaticCache(array $ids) { $entities = array(

NodeInterface::setRevisionAuthorId

public NodeInterface::setRevisionAuthorId($uid) Sets the node revision author. Parameters int $uid: The user ID of the revision author. Return value \Drupal\node\NodeInterface The called node entity. Deprecated in Drupal 8.2.0, will be removed before Drupal 9.0.0. Use \Drupal\Core\Entity\RevisionLogInterface::setRevisionUserId() instead. File core/modules/node/src/NodeInterface.php, line 162 Class NodeInterface Provides an interface defining a node entity. Namespace Drupal\node Co

UpdateProcessor::claimQueueItem

public UpdateProcessor::claimQueueItem() Claims an item in the update fetch queue for processing. Return value bool|\stdClass On success we return an item object. If the queue is unable to claim an item it returns false. Overrides UpdateProcessorInterface::claimQueueItem See also \Drupal\Core\Queue\QueueInterface::claimItem() File core/modules/update/src/UpdateProcessor.php, line 258 Class UpdateProcessor Process project update information. Namespace Drupal\update Code public functio

TypedDataManager::createListDataDefinition

public TypedDataManager::createListDataDefinition($item_type) Creates a new list data definition for items of the given data type. Parameters string $item_type: The item type, for which a list data definition should be created. Return value \Drupal\Core\TypedData\ListDataDefinitionInterface A list definition for items of the given data type. Overrides TypedDataManagerInterface::createListDataDefinition See also \Drupal\Core\TypedData\TypedDataManager::createDataDefinition() File core/lib/Dru

ContentEntityBase::bundleFieldDefinitions

public static ContentEntityBase::bundleFieldDefinitions(EntityTypeInterface $entity_type, $bundle, array $base_field_definitions) Provides field definitions for a specific bundle. This function can return definitions both for bundle fields (fields that are not defined in $base_field_definitions, and therefore might not exist on some bundles) as well as bundle-specific overrides of base fields (fields that are defined in $base_field_definitions, and therefore exist for all bundles). However, bun

LOCALE_JS_STRING

Regular expression pattern used to localize JavaScript strings. File core/modules/locale/locale.module, line 31 Enables the translation of the user interface to languages other than English. Code const LOCALE_JS_STRING = '(?:(?:\'(?:\\\\\'|[^\'])*\'|"(?:\\\\"|[^"])*")(?:\s*\+\s*)?)+';

LocaleConfigManager::getComponentNames

public LocaleConfigManager::getComponentNames(array $components = array()) Gets configuration names associated with components. Parameters array $components: (optional) Array of component lists indexed by type. If not present or it is an empty array, it will update all components. Return value array Array of configuration object names. File core/modules/locale/src/LocaleConfigManager.php, line 299 Class LocaleConfigManager Manages configuration supported in part by interface translation.

ModerationStateTransitionForm::__construct

public ModerationStateTransitionForm::__construct(EntityTypeManagerInterface $entity_type_manager, QueryFactory $query_factory) Constructs a new ModerationStateTransitionForm. Parameters \Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager: The entity type manager. \Drupal\Core\Entity\Query\QueryFactory $query_factory: The entity query factory. File core/modules/content_moderation/src/Form/ModerationStateTransitionForm.php, line 40 Class ModerationStateTransitionForm Class

Token

Drupal placeholder/token replacement system. API functions for replacing placeholders in text with meaningful values. For example: When configuring automated emails, an administrator enters standard text for the email. Variables like the title of a node and the date the email was sent can be entered as placeholders like [node:title] and [date:short]. When a Drupal module prepares to send the email, it can call the Token::replace() function, passing in the text. The token system will scan the te

ModuleHandler::parseDependency

public static ModuleHandler::parseDependency($dependency) Parses a dependency for comparison by drupal_check_incompatibility(). Parameters $dependency: A dependency string, which specifies a module dependency, and optionally the project it comes from and versions that are supported. Supported formats include: 'module' 'project:module' 'project:module (>=version, version)' Return value An associative array with three keys: 'name' includes the name of the thing to depend on (e.g. 'foo'). '