PluralFormula::reset

public PluralFormula::reset() Resets the static formulae cache. Return value self The PluralFormula object. Overrides PluralFormulaInterface::reset File core/modules/locale/src/PluralFormula.php, line 106 Class PluralFormula Manages the storage of plural formula per language in state. Namespace Drupal\locale Code public function reset() { $this->formulae = NULL; return $this; }

Select::forUpdate

public Select::forUpdate($set = TRUE) Add FOR UPDATE to the query. FOR UPDATE prevents the rows retrieved by the SELECT statement from being modified or deleted by other transactions until the current transaction ends. Other transactions that attempt UPDATE, DELETE, or SELECT FOR UPDATE of these rows will be blocked until the current transaction ends. Parameters $set: IF TRUE, FOR UPDATE will be added to the query, if FALSE then it won't. Return value \Drupal\Core\Database\Query\ConditionInte

SqlContentEntityStorageSchema::getEntitySchemaTables

protected SqlContentEntityStorageSchema::getEntitySchemaTables() Gets a list of entity type tables. Return value array A list of entity type tables, keyed by table key. File core/lib/Drupal/Core/Entity/Sql/SqlContentEntityStorageSchema.php, line 566 Class SqlContentEntityStorageSchema Defines a schema handler that supports revisionable, translatable entities. Namespace Drupal\Core\Entity\Sql Code protected function getEntitySchemaTables() { return array_filter(array( 'base_table

ContentTranslationMetadataWrapperInterface::setPublished

public ContentTranslationMetadataWrapperInterface::setPublished($published) Sets the translation published status. The metadata field will be updated, only if it's translatable. Parameters bool $published: TRUE if the translation is published, FALSE otherwise. Return value $this File core/modules/content_translation/src/ContentTranslationMetadataWrapperInterface.php, line 89 Class ContentTranslationMetadataWrapperInterface Common interface for content translation metadata wrappers. Nam

File::setOwnerId

public File::setOwnerId($uid) Sets the entity owner's user ID. Parameters int $uid: The owner user id. Return value $this Overrides EntityOwnerInterface::setOwnerId File core/modules/file/src/Entity/File.php, line 129 Class File Defines the file entity class. Namespace Drupal\file\Entity Code public function setOwnerId($uid) { $this->set('uid', $uid); return $this; }

SqlContentEntityStorageSchema::addSharedTableFieldIndex

protected SqlContentEntityStorageSchema::addSharedTableFieldIndex(FieldStorageDefinitionInterface $storage_definition, &$schema, $not_null = FALSE, $size = NULL) Adds an index for the specified field to the given schema definition. Parameters \Drupal\Core\Field\FieldStorageDefinitionInterface $storage_definition: The storage definition of the field for which an index should be added. array $schema: A reference to the schema array to be updated. bool $not_null: (optional) Whether to also ad

KeyValueEntityStorage::getQueryServiceName

protected KeyValueEntityStorage::getQueryServiceName() Gets the name of the service for the query for this entity storage. Return value string The name of the service for the query for this entity storage. Overrides EntityStorageBase::getQueryServiceName File core/lib/Drupal/Core/Entity/KeyValueStore/KeyValueEntityStorage.php, line 193 Class KeyValueEntityStorage Provides a key value backend for entities. Namespace Drupal\Core\Entity\KeyValueStore Code protected function getQueryServi

ConfigEntityBase::onDependencyRemoval

public ConfigEntityBase::onDependencyRemoval(array $dependencies) Informs the entity that entities it depends on will be deleted. This method allows configuration entities to remove dependencies instead of being deleted themselves. Configuration entities can use this method to avoid being unnecessarily deleted during an extension uninstallation. For example, entity displays remove references to widgets and formatters if the plugin that supplies them depends on a module that is being uninstalled

ContentEntityType::checkStorageClass

protected ContentEntityType::checkStorageClass($class) Throws \InvalidArgumentException If the provided class does not implement \Drupal\Core\Entity\ContentEntityStorageInterface. Overrides EntityType::checkStorageClass See also \Drupal\Core\Entity\ContentEntityStorageInterface File core/lib/Drupal/Core/Entity/ContentEntityType.php, line 37 Class ContentEntityType Provides an implementation of a content entity type and its metadata. Namespace Drupal\Core\Entity Code protected functio

SqlContentEntityStorageSchema::hasSharedTableNameChanges

protected SqlContentEntityStorageSchema::hasSharedTableNameChanges(EntityTypeInterface $entity_type, EntityTypeInterface $original) Detects whether any table name got renamed in an entity type update. Parameters \Drupal\Core\Entity\EntityTypeInterface $entity_type: The new entity type. \Drupal\Core\Entity\EntityTypeInterface $original: The origin entity type. Return value bool Returns TRUE if there have been changes. File core/lib/Drupal/Core/Entity/Sql/SqlContentEntityStorageSchema.php, line