Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. FieldPluginBase.php

function FieldPluginBase::init

Overrides HandlerBase::init

26 calls to FieldPluginBase::init()
Boolean::init in core/modules/views/src/Plugin/views/field/Boolean.php
Initialize the plugin.
Boolean::init in core/modules/views/src/Plugin/views/field/Boolean.php
Initialize the plugin.
BulkForm::init in core/modules/views/src/Plugin/views/field/BulkForm.php
Initialize the plugin.
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
Initialize the plugin.

... See full list

13 methods override FieldPluginBase::init()
Boolean::init in core/modules/views/src/Plugin/views/field/Boolean.php
Initialize the plugin.
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
Initialize the plugin.
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
Initialize the plugin.

... See full list

File

core/modules/views/src/Plugin/views/field/FieldPluginBase.php, line 143

Class

FieldPluginBase
Base class for views fields.

Namespace

Drupal\views\Plugin\views\field

Code

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'] = '';
    }
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal