public function WizardPluginBase::__construct

Constructs a WizardPluginBase object.

Overrides PluginBase::__construct

File

drupal/core/modules/views/lib/Drupal/views/Plugin/views/wizard/WizardPluginBase.php, line 116
Definition of Drupal\views\Plugin\views\wizard\WizardPluginBase.

Class

WizardPluginBase
Provides the interface and base class for Views Wizard plugins.

Namespace

Drupal\views\Plugin\views\wizard

Code

public function __construct(array $configuration, $plugin_id, array $plugin_definition) {
  parent::__construct($configuration, $plugin_id, $plugin_definition);
  $this->base_table = $this->definition['base_table'];
  $entities = entity_get_info();
  foreach ($entities as $entity_type => $entity_info) {
    if (isset($entity_info['base_table']) && $this->base_table == $entity_info['base_table']) {
      $this->entity_info = $entity_info;
      $this->entity_type = $entity_type;
    }
  }
}