EntityStorageBase::getEntityType

public EntityStorageBase::getEntityType() Gets the entity type definition. Return value \Drupal\Core\Entity\EntityTypeInterface Entity type definition. Overrides EntityStorageInterface::getEntityType File core/lib/Drupal/Core/Entity/EntityStorageBase.php, line 100 Class EntityStorageBase A base entity storage class. Namespace Drupal\Core\Entity Code public function getEntityType() { return $this->entityType; }

DrupalDateTime

Extends DateTimePlus(). This class extends the basic component and adds in Drupal-specific handling, like translation of the format() method. Static methods in base class can also be used to create DrupalDateTime objects. For example: DrupalDateTime::createFromArray( array('year' => 2010, 'month' => 9, 'day' => 28) ) Hierarchy class \Drupal\Component\Datetime\DateTimePlus uses ToStringTraitclass \Drupal\Core\Datetime\DrupalDateTime uses StringTranslationTrait See also \Drupal/Comp

EntityStorageBase::mapFromStorageRecords

protected EntityStorageBase::mapFromStorageRecords(array $records) Maps from storage records to entity objects. Parameters array $records: Associative array of query results, keyed on the entity ID. Return value \Drupal\Core\Entity\EntityInterface[] An array of entity objects implementing the EntityInterface. File core/lib/Drupal/Core/Entity/EntityStorageBase.php, line 319 Class EntityStorageBase A base entity storage class. Namespace Drupal\Core\Entity Code protected function mapFro

EntityStorageBase::postLoad

protected EntityStorageBase::postLoad(array &$entities) Attaches data to entities upon loading. Parameters array $entities: Associative array of query results, keyed on the entity ID. File core/lib/Drupal/Core/Entity/EntityStorageBase.php, line 295 Class EntityStorageBase A base entity storage class. Namespace Drupal\Core\Entity Code protected function postLoad(array &$entities) { $entity_class = $this->entityClass; $entity_class::postLoad($this, $entities); // Call h

SubformState::$parentForm

The parent form. Type: mixed[] File core/lib/Drupal/Core/Form/SubformState.php, line 19 Class SubformState Stores information about the state of a subform. Namespace Drupal\Core\Form Code protected $parentForm;

UserInterface::removeRole

public UserInterface::removeRole($rid) Remove a role from a user. Parameters string $rid: The role ID to remove. File core/modules/user/src/UserInterface.php, line 41 Class UserInterface Provides an interface defining a user entity. Namespace Drupal\user Code public function removeRole($rid);

SortArray::sortByWeightElement

public static SortArray::sortByWeightElement(array $a, array $b) Sorts a structured array by the 'weight' element. Note that the sorting is by the 'weight' array element, not by the render element property '#weight'. Callback for uasort(). Parameters array $a: First item for comparison. The compared items should be associative arrays that optionally include a 'weight' element. For items without a 'weight' element, a default value of 0 will be used. array $b: Second item for comparison. Return

EntityStorageInterface::FIELD_LOAD_CURRENT

Load the most recent version of an entity's field data. Overrides EntityStorageInterface::FIELD_LOAD_CURRENT File core/lib/Drupal/Core/Entity/EntityStorageInterface.php, line 21 Class EntityStorageInterface Defines the interface for entity storage classes. Namespace Drupal\Core\Entity Code const FIELD_LOAD_CURRENT = 'FIELD_LOAD_CURRENT';

FormStateDecoratorBase::getButtons

public FormStateDecoratorBase::getButtons() Returns the submit and button elements for the form. Return value array The submit and button elements. Overrides FormStateInterface::getButtons File core/lib/Drupal/Core/Form/FormStateDecoratorBase.php, line 57 Class FormStateDecoratorBase Decorates another form state. Namespace Drupal\Core\Form Code public function getButtons() { return $this->decoratedFormState->getButtons(); }

FieldStorageConfig::calculateDependencies

public FieldStorageConfig::calculateDependencies() Calculates dependencies and stores them in the dependency property. Return value $this Overrides ConfigEntityBase::calculateDependencies See also \Drupal\Core\Config\Entity\ConfigDependencyManager File core/modules/field/src/Entity/FieldStorageConfig.php, line 338 Class FieldStorageConfig Defines the Field storage configuration entity. Namespace Drupal\field\Entity Code public function calculateDependencies() { parent::calculateDep