Same name and namespace in other branches
- 8.9.x core/lib/Drupal/Core/Field/FieldConfigBase.php \Drupal\Core\Field\FieldConfigBase::getDescription()
- 9 core/lib/Drupal/Core/Field/FieldConfigBase.php \Drupal\Core\Field\FieldConfigBase::getDescription()
Returns a human readable description.
Descriptions are usually used on user interfaces where the data is edited or displayed.
Return value
string|\Drupal\Core\StringTranslation\TranslatableMarkup|null The description. A string or an instance of TranslatableMarkup will be returned based on the way the description translation is handled. NULL if no description is available.
Overrides DataDefinitionInterface::getDescription
File
- core/
lib/ Drupal/ Core/ Field/ FieldConfigBase.php, line 338
Class
- FieldConfigBase
- Base class for configurable field definitions.
Namespace
Drupal\Core\FieldCode
public function getDescription() {
return $this->description;
}