public function WizardPluginBase::__construct in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/modules/views/src/Plugin/views/wizard/WizardPluginBase.php \Drupal\views\Plugin\views\wizard\WizardPluginBase::__construct()
Constructs a WizardPluginBase object.
Overrides PluginBase::__construct
File
- core/
modules/ views/ src/ Plugin/ views/ wizard/ WizardPluginBase.php, line 119 - Contains \Drupal\views\Plugin\views\wizard\WizardPluginBase.
Class
- WizardPluginBase
- Base class for Views wizard plugins.
Namespace
Drupal\views\Plugin\views\wizardCode
public function __construct(array $configuration, $plugin_id, $plugin_definition) {
parent::__construct($configuration, $plugin_id, $plugin_definition);
$this->base_table = $this->definition['base_table'];
$entity_types = \Drupal::entityManager()
->getDefinitions();
foreach ($entity_types as $entity_type_id => $entity_type) {
if ($this->base_table == $entity_type
->getBaseTable() || $this->base_table == $entity_type
->getDataTable()) {
$this->entityType = $entity_type;
$this->entityTypeId = $entity_type_id;
}
}
}