BaseFieldOverride::isComputed

public BaseFieldOverride::isComputed() Determines whether the data value is computed. For example, data could be computed depending on some other values. Return value bool Whether the data value is computed. Overrides DataDefinitionInterface::isComputed File core/lib/Drupal/Core/Field/Entity/BaseFieldOverride.php, line 140 Class BaseFieldOverride Defines the base field override entity. Namespace Drupal\Core\Field\Entity Code public function isComputed() { return $this->getBaseFie

BaseFieldOverride::getFieldStorageDefinition

public BaseFieldOverride::getFieldStorageDefinition() Returns the field storage definition. Return value \Drupal\Core\Field\FieldStorageDefinitionInterface The field storage definition. Overrides FieldDefinitionInterface::getFieldStorageDefinition File core/lib/Drupal/Core/Field/Entity/BaseFieldOverride.php, line 112 Class BaseFieldOverride Defines the base field override entity. Namespace Drupal\Core\Field\Entity Code public function getFieldStorageDefinition() { return $this->g

BaseFieldOverride::getDisplayOptions

public BaseFieldOverride::getDisplayOptions($display_context) Returns the default display options for the field. If the field's display is configurable, the returned display options act as default values and may be overridden via the respective entity display. Otherwise, the display options will be applied to entity displays as is. Parameters string $display_context: The display context. Either 'view' or 'form'. Return value array|null The array of display options for the field, or NULL if th

BaseFieldOverride::getBaseFieldDefinition

protected BaseFieldOverride::getBaseFieldDefinition() Gets the base field definition. Return value \Drupal\Core\Field\BaseFieldDefinition File core/lib/Drupal/Core/Field/Entity/BaseFieldOverride.php, line 149 Class BaseFieldOverride Defines the base field override entity. Namespace Drupal\Core\Field\Entity Code protected function getBaseFieldDefinition() { if (!isset($this->baseFieldDefinition)) { $fields = $this->entityManager()->getBaseFieldDefinitions($this->entit

BaseFieldOverride::createFromBaseFieldDefinition

public static BaseFieldOverride::createFromBaseFieldDefinition(BaseFieldDefinition $base_field_definition, $bundle) Creates a base field override object. Parameters \Drupal\Core\Field\BaseFieldDefinition $base_field_definition: The base field definition to override. string $bundle: The bundle to which the override applies. Return value \Drupal\Core\Field\Entity\BaseFieldOverride A new base field override object. File core/lib/Drupal/Core/Field/Entity/BaseFieldOverride.php, line 62 Class B

BaseFieldOverride::$baseFieldDefinition

The base field definition. Type: \Drupal\Core\Field\BaseFieldDefinition File core/lib/Drupal/Core/Field/Entity/BaseFieldOverride.php, line 49 Class BaseFieldOverride Defines the base field override entity. Namespace Drupal\Core\Field\Entity Code protected $baseFieldDefinition;

BaseFieldOverride

Defines the base field override entity. Allows base fields to be overridden on the bundle level. Plugin annotation @ConfigEntityType( id = "base_field_override", label = @Translation("Base field override"), handlers = { "storage" = "Drupal\Core\Field\BaseFieldOverrideStorage" }, config_prefix = "base_field_override", entity_keys = { "id" = "id", "label" = "label" }, config_export = { "id", "field_name", "entity_type", "bundle", "label", "descr

BaseFieldDefinition::__sleep

public BaseFieldDefinition::__sleep() File core/lib/Drupal/Core/Field/BaseFieldDefinition.php, line 579 Class BaseFieldDefinition A class for defining entity fields. Namespace Drupal\Core\Field Code public function __sleep() { // Do not serialize the statically cached property definitions. $vars = get_object_vars($this); unset($vars['propertyDefinitions']); return array_keys($vars); }

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) { $

BaseFieldDefinition::setTargetEntityTypeId

public BaseFieldDefinition::setTargetEntityTypeId($entity_type_id) Sets the ID of the type of the entity this field is attached to. Parameters string $entity_type_id: The name of the target entity type to set. Return value $this File core/lib/Drupal/Core/Field/BaseFieldDefinition.php, line 601 Class BaseFieldDefinition A class for defining entity fields. Namespace Drupal\Core\Field Code public function setTargetEntityTypeId($entity_type_id) { $this->definition['entity_type'] = $