function FieldPluginBase::init
Same name in other branches
- 9 core/modules/views/src/Plugin/views/field/FieldPluginBase.php \Drupal\views\Plugin\views\field\FieldPluginBase::init()
- 8.9.x core/modules/views/src/Plugin/views/field/FieldPluginBase.php \Drupal\views\Plugin\views\field\FieldPluginBase::init()
- 10 core/modules/views/src/Plugin/views/field/FieldPluginBase.php \Drupal\views\Plugin\views\field\FieldPluginBase::init()
Overrides HandlerBase::init
11 calls to FieldPluginBase::init()
- Boolean::init in core/
modules/ views/ src/ Plugin/ views/ field/ Boolean.php - DblogMessage::init in core/
modules/ dblog/ src/ Plugin/ views/ field/ DblogMessage.php - EntityLabel::init in core/
modules/ views/ src/ Plugin/ views/ field/ EntityLabel.php - File::init in core/
modules/ file/ src/ Plugin/ views/ field/ File.php - LastTimestamp::init in core/
modules/ comment/ src/ Plugin/ views/ field/ LastTimestamp.php
13 methods override FieldPluginBase::init()
- Boolean::init in core/
modules/ views/ src/ Plugin/ views/ field/ Boolean.php - BulkForm::init in core/
modules/ views/ src/ Plugin/ views/ field/ BulkForm.php - Initialize the plugin.
- DblogMessage::init in core/
modules/ dblog/ src/ Plugin/ views/ field/ DblogMessage.php - EntityField::init in core/
modules/ views/ src/ Plugin/ views/ field/ EntityField.php - Initialize the plugin.
- EntityLabel::init in core/
modules/ views/ src/ Plugin/ views/ field/ EntityLabel.php
File
-
core/
modules/ views/ src/ Plugin/ views/ field/ FieldPluginBase.php, line 141
Class
- FieldPluginBase
- Base class for views fields.
Namespace
Drupal\views\Plugin\views\fieldCode
public function init(ViewExecutable $view, DisplayPluginBase $display, ?array &$options = NULL) {
parent::init($view, $display, $options);
$this->additional_fields = [];
if (!empty($this->definition['additional fields'])) {
$this->additional_fields = $this->definition['additional fields'];
}
if (!isset($this->options['exclude'])) {
$this->options['exclude'] = '';
}
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.