public function PanelizerWizardBase::initValues in Panelizer 8.5
Same name and namespace in other branches
- 8.3 src/Wizard/PanelizerWizardBase.php \Drupal\panelizer\Wizard\PanelizerWizardBase::initValues()
- 8.4 src/Wizard/PanelizerWizardBase.php \Drupal\panelizer\Wizard\PanelizerWizardBase::initValues()
Initialize wizard values.
Return mixed.
Overrides FormWizardBase::initValues
1 call to PanelizerWizardBase::initValues()
- PanelizerEditWizard::initValues in src/
Wizard/ PanelizerEditWizard.php - Initialize wizard values.
1 method overrides PanelizerWizardBase::initValues()
- PanelizerEditWizard::initValues in src/
Wizard/ PanelizerEditWizard.php - Initialize wizard values.
File
- src/
Wizard/ PanelizerWizardBase.php, line 113
Class
Namespace
Drupal\panelizer\WizardCode
public function initValues() {
$cached_values = parent::initValues();
$cached_values['access'] = new PanelizerUIAccess();
if (empty($cached_values['plugin'])) {
/** @var \Drupal\panels\Plugin\DisplayVariant\PanelsDisplayVariant $plugin */
$plugin = \Drupal::service('plugin.manager.display_variant')
->createInstance('panels_variant');
$plugin
->setPattern('panelizer');
$plugin
->setBuilder('ipe');
$plugin
->setStorage('panelizer_default', 'TEMPORARY_STORAGE_ID');
$cached_values['plugin'] = $plugin;
}
if (empty($cached_values['contexts'])) {
$cached_values['contexts'] = [];
}
return $cached_values;
}