public function FieldPluginBase::label in Drupal 8
Same name and namespace in other branches
- 9 core/modules/views/src/Plugin/views/field/FieldPluginBase.php \Drupal\views\Plugin\views\field\FieldPluginBase::label()
Gets this field's label.
Overrides FieldHandlerInterface::label
2 calls to FieldPluginBase::label()
- FieldPluginBase::adminSummary in core/
modules/ views/ src/ Plugin/ views/ field/ FieldPluginBase.php - Provide extra data to the administration form
- FieldPluginBase::buildOptionsForm in core/
modules/ views/ src/ Plugin/ views/ field/ FieldPluginBase.php - Default options form that provides the label widget that all fields should have.
File
- core/
modules/ views/ src/ Plugin/ views/ field/ FieldPluginBase.php, line 236
Class
- FieldPluginBase
- Base class for views fields.
Namespace
Drupal\views\Plugin\views\fieldCode
public function label() {
if (!isset($this->options['label'])) {
return '';
}
return $this->options['label'];
}