protected function FieldPluginBase::getPreviousFieldLabels in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/modules/views/src/Plugin/views/field/FieldPluginBase.php \Drupal\views\Plugin\views\field\FieldPluginBase::getPreviousFieldLabels()
Returns all field labels of fields before this field.
Return value
array An array of field labels keyed by their field IDs.
2 calls to FieldPluginBase::getPreviousFieldLabels()
- 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.
- Links::buildOptionsForm in core/
modules/ views/ src/ Plugin/ views/ field/ Links.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 1090 - Contains \Drupal\views\Plugin\views\field\FieldPluginBase.
Class
- FieldPluginBase
- Base class for views fields.
Namespace
Drupal\views\Plugin\views\fieldCode
protected function getPreviousFieldLabels() {
$all_fields = $this->view->display_handler
->getFieldLabels();
$field_options = array_slice($all_fields, 0, array_search($this->options['id'], array_keys($all_fields)));
return $field_options;
}