function LinkItem::getTitle
Same name and namespace in other branches
- 11.x core/modules/link/src/Plugin/Field/FieldType/LinkItem.php \Drupal\link\Plugin\Field\FieldType\LinkItem::getTitle()
Gets the link title.
Return value
string|null Returns the link title.
Overrides LinkItemInterface::getTitle
File
-
core/
modules/ link/ src/ Plugin/ Field/ FieldType/ LinkItem.php, line 186
Class
- LinkItem
- Plugin implementation of the 'link' field type.
Namespace
Drupal\link\Plugin\Field\FieldTypeCode
public function getTitle() : ?string {
return $this->title ?: NULL;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.