Mercurial > hg > isophonics-drupal-site
comparison core/modules/views/src/Plugin/Derivative/DefaultWizardDeriver.php @ 17:129ea1e6d783
Update, including to Drupal core 8.6.10
author | Chris Cannam |
---|---|
date | Thu, 28 Feb 2019 13:21:36 +0000 |
parents | 4c8ae668cc8c |
children |
comparison
equal
deleted
inserted
replaced
16:c2387f117808 | 17:129ea1e6d783 |
---|---|
9 * A derivative class which provides automatic wizards for all base tables. | 9 * A derivative class which provides automatic wizards for all base tables. |
10 * | 10 * |
11 * The derivatives store all base table plugin information. | 11 * The derivatives store all base table plugin information. |
12 */ | 12 */ |
13 class DefaultWizardDeriver extends DeriverBase { | 13 class DefaultWizardDeriver extends DeriverBase { |
14 | |
14 /** | 15 /** |
15 * {@inheritdoc} | 16 * {@inheritdoc} |
16 */ | 17 */ |
17 public function getDerivativeDefinitions($base_plugin_definition) { | 18 public function getDerivativeDefinitions($base_plugin_definition) { |
18 $views_data = Views::viewsData(); | 19 $views_data = Views::viewsData(); |
23 if (empty($views_info['table']['wizard_id'])) { | 24 if (empty($views_info['table']['wizard_id'])) { |
24 $this->derivatives[$table] = [ | 25 $this->derivatives[$table] = [ |
25 'id' => 'standard', | 26 'id' => 'standard', |
26 'base_table' => $table, | 27 'base_table' => $table, |
27 'title' => $views_info['table']['base']['title'], | 28 'title' => $views_info['table']['base']['title'], |
28 'class' => 'Drupal\views\Plugin\views\wizard\Standard' | 29 'class' => 'Drupal\views\Plugin\views\wizard\Standard', |
29 ]; | 30 ]; |
30 } | 31 } |
31 } | 32 } |
32 return parent::getDerivativeDefinitions($base_plugin_definition); | 33 return parent::getDerivativeDefinitions($base_plugin_definition); |
33 } | 34 } |