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 115
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, DiscoveryInterface $discovery) {
  parent::__construct($configuration, $plugin_id, $discovery);
  $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;
    }
  }
}