public function Markup::init

Overrides Drupal\views\Plugin\views\HandlerBase::init().

Overrides FieldPluginBase::init

File

drupal/core/modules/views/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\field

Code

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;
  }
}