You are here

public function BaseFieldOverride::isReadOnly in Drupal 9

Same name and namespace in other branches
  1. 8 core/lib/Drupal/Core/Field/Entity/BaseFieldOverride.php \Drupal\Core\Field\Entity\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 132

Class

BaseFieldOverride
Defines the base field override entity.

Namespace

Drupal\Core\Field\Entity

Code

public function isReadOnly() {
  return $this
    ->getBaseFieldDefinition()
    ->isReadOnly();
}