public function Markup::init in Views (for Drupal 7) 8.3
Overrides Drupal\views\Plugin\views\HandlerBase::init().
Overrides FieldPluginBase::init
File
- lib/
Drupal/ views/ Plugin/ views/ field/ Markup.php, line 30 - Definition of Drupal\views\Plugin\views\field\Markup.
Class
- Markup
- A handler to run a field through check_markup, using a companion format field.
Namespace
Drupal\views\Plugin\views\fieldCode
public function init(ViewExecutable $view, &$options) {
parent::init($view, $options);
$this->format = $this->definition['format'];
$this->additional_fields = array();
if (is_array($this->format)) {
$this->additional_fields['format'] = $this->format;
}
}