public DataDefinition::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/TypedData/DataDefinition.php, line 121
Class
- DataDefinition
- A typed data definition class for defining data based on defined data types.
Namespace
Drupal\Core\TypedData
Code
public function isReadOnly() { if (!isset($this->definition['read-only'])) { // Default to read-only if the data value is computed. return $this->isComputed(); } return !empty($this->definition['read-only']); }
Please login to continue.