You are here

public function FieldPluginBase::init in Views (for Drupal 7) 8.3

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

Overrides HandlerBase::init

25 calls to FieldPluginBase::init()
AccesslogPath::init in lib/Views/statistics/Plugin/views/field/AccesslogPath.php
Override init function to provide generic option to link to node.
Boolean::init in lib/Drupal/views/Plugin/views/field/Boolean.php
Overrides Drupal\views\Plugin\views\HandlerBase::init().
Category::init in lib/Views/aggregator/Plugin/views/field/Category.php
Overrides Drupal\views\Plugin\views\field\FieldPluginBase::init().
Comment::init in lib/Views/comment/Plugin/views/field/Comment.php
Override init function to provide generic option to link to comment.
Field::init in lib/Views/field/Plugin/views/field/Field.php
Overrides Drupal\views\Plugin\views\HandlerBase::init().

... See full list

25 methods override FieldPluginBase::init()
AccesslogPath::init in lib/Views/statistics/Plugin/views/field/AccesslogPath.php
Override init function to provide generic option to link to node.
Boolean::init in lib/Drupal/views/Plugin/views/field/Boolean.php
Overrides Drupal\views\Plugin\views\HandlerBase::init().
Category::init in lib/Views/aggregator/Plugin/views/field/Category.php
Overrides Drupal\views\Plugin\views\field\FieldPluginBase::init().
Comment::init in lib/Views/comment/Plugin/views/field/Comment.php
Override init function to provide generic option to link to comment.
Field::init in lib/Views/field/Plugin/views/field/Field.php
Overrides Drupal\views\Plugin\views\HandlerBase::init().

... See full list

File

lib/Drupal/views/Plugin/views/field/FieldPluginBase.php, line 73
Definition of Drupal\views\Plugin\views\field\FieldPluginBase.

Class

FieldPluginBase
Base field handler that has no options and renders an unformatted field.

Namespace

Drupal\views\Plugin\views\field

Code

public function init(ViewExecutable $view, &$options) {
  parent::init($view, $options);
  $this->additional_fields = array();
  if (!empty($this->definition['additional fields'])) {
    $this->additional_fields = $this->definition['additional fields'];
  }
  if (!isset($this->options['exclude'])) {
    $this->options['exclude'] = '';
  }
}