You are here

public function WizardPluginBase::__construct in Views (for Drupal 7) 8.3

Constructs a WizardPluginBase object.

Overrides PluginBase::__construct

File

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