You are here

public function BaseFieldOverride::isReadOnly in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 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 138
Contains \Drupal\Core\Field\Entity\BaseFieldOverride.

Class

BaseFieldOverride
Defines the base field override entity.

Namespace

Drupal\Core\Field\Entity

Code

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