function Markup::init
Same name in other branches
- 8.9.x core/modules/views/src/Plugin/views/field/Markup.php \Drupal\views\Plugin\views\field\Markup::init()
- 10 core/modules/views/src/Plugin/views/field/Markup.php \Drupal\views\Plugin\views\field\Markup::init()
- 11.x core/modules/views/src/Plugin/views/field/Markup.php \Drupal\views\Plugin\views\field\Markup::init()
Overrides FieldPluginBase::init
File
-
core/
modules/ views/ src/ Plugin/ views/ field/ Markup.php, line 26
Class
- Markup
- Handler to run a field through check_markup, using a companion format field.
Namespace
Drupal\views\Plugin\views\fieldCode
public function init(ViewExecutable $view, DisplayPluginBase $display, array &$options = NULL) {
parent::init($view, $display, $options);
$this->format = $this->definition['format'];
$this->additional_fields = [];
if (is_array($this->format)) {
$this->additional_fields['format'] = $this->format;
}
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.