DataDefinition::isComputed

public DataDefinition::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/TypedData/DataDefinition.php, line 146

Class

DataDefinition
A typed data definition class for defining data based on defined data types.

Namespace

Drupal\Core\TypedData

Code

public function isComputed() {
  return !empty($this->definition['computed']);
}
doc_Drupal
2016-10-29 09:00:06
Comments
Leave a Comment

Please login to continue.