BaseFieldOverrideStorage::__construct

public BaseFieldOverrideStorage::__construct(EntityTypeInterface $entity_type, ConfigFactoryInterface $config_factory, UuidInterface $uuid_service, LanguageManagerInterface $language_manager, FieldTypePluginManagerInterface $field_type_manager) Constructs a BaseFieldOverrideStorage object. Parameters \Drupal\Core\Entity\EntityTypeInterface $entity_type: The entity type definition. \Drupal\Core\Config\ConfigFactoryInterface $config_factory: The config factory service. \Drupal\Component\Uuid\Uui

BaseFieldOverrideStorage::createInstance

public static BaseFieldOverrideStorage::createInstance(ContainerInterface $container, EntityTypeInterface $entity_type) Instantiates a new instance of this entity handler. This is a factory method that returns a new instance of this object. The factory should pass any needed dependencies into the constructor of this object, but not the container itself. Every call to this method must return a new instance of this object; that is, it may not implement a singleton. Parameters \Symfony\Component\

BaseFieldOverrideStorage

Storage class for base field overrides. Hierarchy class \Drupal\Core\Entity\EntityHandlerBase uses DependencySerializationTrait, StringTranslationTraitclass \Drupal\Core\Entity\EntityStorageBase implements EntityHandlerInterface, EntityStorageInterfaceclass \Drupal\Core\Config\Entity\ConfigEntityStorage implements ConfigEntityStorageInterface, ImportableEntityStorageInterfaceclass \Drupal\Core\Field\FieldConfigStorageBaseclass \Drupal\Core\Field\BaseFieldOverrideStorage File core/lib/Dru

BaseFieldOverride::__sleep

public BaseFieldOverride::__sleep() Implements the magic __sleep() method. Overrides FieldConfigBase::__sleep File core/lib/Drupal/Core/Field/Entity/BaseFieldOverride.php, line 234 Class BaseFieldOverride Defines the base field override entity. Namespace Drupal\Core\Field\Entity Code public function __sleep() { // Only serialize necessary properties, excluding those that can be // recalculated. unset($this->baseFieldDefinition); return parent::__sleep(); }

BaseFieldOverride::__construct

public BaseFieldOverride::__construct(array $values, $entity_type = 'base_field_override') Constructs a BaseFieldOverride object. In most cases, base field override entities are created via BaseFieldOverride::createFromBaseFieldDefinition($definition, 'bundle') Parameters array $values: An array of base field bundle override properties, keyed by property name. The field to override is specified by referring to an existing field with: field_name: The field name. entity_type: The entity type.

BaseFieldOverride::preSave

public BaseFieldOverride::preSave(EntityStorageInterface $storage) Throws \Drupal\Core\Field\FieldException If the bundle is being changed. Overrides ConfigEntityBase::preSave File core/lib/Drupal/Core/Field/Entity/BaseFieldOverride.php, line 163 Class BaseFieldOverride Defines the base field override entity. Namespace Drupal\Core\Field\Entity Code public function preSave(EntityStorageInterface $storage) { // Filter out unknown settings and make sure all settings are present, so /

BaseFieldOverride::postDelete

public static BaseFieldOverride::postDelete(EntityStorageInterface $storage, array $field_overrides) Acts on deleted entities before the delete hook is invoked. Used after the entities are deleted but before invoking the delete hook. Parameters \Drupal\Core\Entity\EntityStorageInterface $storage: The entity storage object. \Drupal\Core\Entity\EntityInterface[] $entities: An array of entities. Overrides Entity::postDelete File core/lib/Drupal/Core/Field/Entity/BaseFieldOverride.php, line 198

BaseFieldOverride::loadByName

public static BaseFieldOverride::loadByName($entity_type_id, $bundle, $field_name) Loads a base field bundle override config entity. Parameters string $entity_type_id: ID of the entity type. string $bundle: Bundle name. string $field_name: Name of the field. Return value static The base field bundle override config entity if one exists for the provided field name, otherwise NULL. File core/lib/Drupal/Core/Field/Entity/BaseFieldOverride.php, line 227 Class BaseFieldOverride Defines the ba

BaseFieldOverride::isReadOnly

public BaseFieldOverride::isReadOnly() Determines whether the data is read-only. Return value bool Whether the data is read-only. Overrides DataDefinitionInterface::isReadOnly File core/lib/Drupal/Core/Field/Entity/BaseFieldOverride.php, line 133 Class BaseFieldOverride Defines the base field override entity. Namespace Drupal\Core\Field\Entity Code public function isReadOnly() { return $this->getBaseFieldDefinition()->isReadOnly(); }

BaseFieldOverride::isDisplayConfigurable

public BaseFieldOverride::isDisplayConfigurable($context) Returns whether the display for the field can be configured. Parameters string $display_context: The display context. Either 'view' or 'form'. Return value bool TRUE if the display for this field is configurable in the given context. If TRUE, the display options returned by getDisplayOptions() may be overridden via the respective entity display. Overrides FieldDefinitionInterface::isDisplayConfigurable See also \Drupal\Core\Entity\Dis