DataDefinition::getDescription

public DataDefinition::getDescription()

Returns a human readable description.

Descriptions are usually used on user interfaces where the data is edited or displayed.

Return value

string|null The description, or NULL if no description is available.

Overrides DataDefinitionInterface::getDescription

File

core/lib/Drupal/Core/TypedData/DataDefinition.php, line 93

Class

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

Namespace

Drupal\Core\TypedData

Code

public function getDescription() {
  return isset($this->definition['description']) ? $this->definition['description'] : NULL;
}
doc_Drupal
2016-10-29 09:00:05
Comments
Leave a Comment

Please login to continue.