public function PanelizerWizardGeneralForm::__construct in Panelizer 8.4
Same name and namespace in other branches
- 8.5 src/Form/PanelizerWizardGeneralForm.php \Drupal\panelizer\Form\PanelizerWizardGeneralForm::__construct()
- 8.3 src/Form/PanelizerWizardGeneralForm.php \Drupal\panelizer\Form\PanelizerWizardGeneralForm::__construct()
PanelizerWizardGeneralForm constructor.
Parameters
\Drupal\Core\Routing\RouteMatchInterface $route_match: The current route match.
\Drupal\panelizer\PanelizerInterface $panelizer: The Panelizer service.
File
- src/
Form/ PanelizerWizardGeneralForm.php, line 60
Class
- PanelizerWizardGeneralForm
- General settings for a panelized bundle.
Namespace
Drupal\panelizer\FormCode
public function __construct(RouteMatchInterface $route_match, PanelizerInterface $panelizer) {
$this->routeMatch = $route_match;
if ($route_match
->getRouteName() == 'panelizer.wizard.add') {
$this->entityTypeId = $route_match
->getParameter('entity_type_id');
$this->bundle = $route_match
->getParameter('bundle');
$this->viewMode = $route_match
->getParameter('view_mode_name');
}
$this->panelizer = $panelizer;
}