EntityStorageBase::$entityTypeId

Entity type ID for this storage. Type: string File core/lib/Drupal/Core/Entity/EntityStorageBase.php, line 24 Class EntityStorageBase A base entity storage class. Namespace Drupal\Core\Entity Code protected $entityTypeId;

FieldItemInterface::__get

public FieldItemInterface::__get($property_name) Magic method: Gets a property value. Parameters $property_name: The name of the property to get; e.g., 'title' or 'name'. Return value \Drupal\Core\TypedData\TypedDataInterface The property object. Throws \InvalidArgumentException If a not existing property is accessed. File core/lib/Drupal/Core/Field/FieldItemInterface.php, line 126 Class FieldItemInterface Interface for entity field items. Namespace Drupal\Core\Field Code public fun

DateTimeComputed::setValue

public DateTimeComputed::setValue($value, $notify = TRUE) Sets the data value. Parameters mixed|null $value: The value to set in the format as documented for the data type or NULL to unset the data value. bool $notify: (optional) Whether to notify the parent object of the change. Defaults to TRUE. If a property is updated from a parent object, set it to FALSE to avoid being notified again. Throws \InvalidArgumentException If the value input is inappropriate. \Drupal\Core\TypedData\Exception\R

hook_entity_build_defaults_alter

hook_entity_build_defaults_alter(array &$build, \Drupal\Core\Entity\EntityInterface $entity, $view_mode) Alter entity renderable values before cache checking in drupal_render(). The values in the #cache key of the renderable array are used to determine if a cache entry exists for the entity's rendered output. Ideally only values that pertain to caching should be altered in this hook. Parameters array &$build: A renderable array containing the entity's caching and view mode values. \Dru

BaseFieldDefinition::setTranslatable

public BaseFieldDefinition::setTranslatable($translatable) Sets whether the field is translatable. Parameters bool $translatable: Whether the field is translatable. Return value $this The object itself for chaining. Overrides FieldStorageDefinitionInterface::setTranslatable File core/lib/Drupal/Core/Field/BaseFieldDefinition.php, line 228 Class BaseFieldDefinition A class for defining entity fields. Namespace Drupal\Core\Field Code public function setTranslatable($translatable) { $

MenuLinkBase::getRouteParameters

public MenuLinkBase::getRouteParameters() Returns the route parameters, if available. Return value array An array of parameter names and values. Overrides MenuLinkInterface::getRouteParameters File core/lib/Drupal/Core/Menu/MenuLinkBase.php, line 115 Class MenuLinkBase Defines a base menu link class. Namespace Drupal\Core\Menu Code public function getRouteParameters() { return isset($this->pluginDefinition['route_parameters']) ? $this->pluginDefinition['route_parameters'] : ar

hook_field_views_data_alter

hook_field_views_data_alter(array &$data, \Drupal\field\FieldStorageConfigInterface $field_storage) Alter the Views data for a single Field API field. This is called on all modules even if there is no hook_field_views_data() implementation for the field, and therefore may be used to alter the default data that views_field_default_views_data() supplies for the field storage. Parameters array $data: The views data for the field storage. This has the same format as the return value of hook_vi

ControllerBase::$stateService

The state service. Type: \Drupal\Core\KeyValueStore\KeyValueStoreInterface File core/lib/Drupal/Core/Controller/ControllerBase.php, line 96 Class ControllerBase Utility base class for thin controllers. Namespace Drupal\Core\Controller Code protected $stateService;

CheckProvider::$dynamicRequirementMap

An array to map dynamic requirement keys to service IDs. Type: array File core/lib/Drupal/Core/Access/CheckProvider.php, line 56 Class CheckProvider Loads access checkers from the container. Namespace Drupal\Core\Access Code protected $dynamicRequirementMap;

hook_update_status_alter

hook_update_status_alter(&$projects) Alter the information about available updates for projects. Parameters $projects: Reference to an array of information about available updates to each project installed on the system. See also update_calculate_project_data() Related topics Hooks Define functions that alter the behavior of Drupal core. File core/modules/update/update.api.php, line 85 Hooks provided by the Update Manager module. Code function hook_update_status_alter(&$projects)