protected function StaticContextDeleteForm::getPageVariant in Page Manager 8.4
Same name and namespace in other branches
- 8 page_manager_ui/src/Form/StaticContextDeleteForm.php \Drupal\page_manager_ui\Form\StaticContextDeleteForm::getPageVariant()
Get the page variant.
Parameters
array $cached_values: The cached values from the wizard.
Return value
\Drupal\page_manager\PageVariantInterface
3 calls to StaticContextDeleteForm::getPageVariant()
- StaticContextDeleteForm::getCancelUrl in page_manager_ui/
src/ Form/ StaticContextDeleteForm.php - Returns the route to go to if the user cancels the action.
- StaticContextDeleteForm::getQuestion in page_manager_ui/
src/ Form/ StaticContextDeleteForm.php - Returns the question to ask the user.
- StaticContextDeleteForm::submitForm in page_manager_ui/
src/ Form/ StaticContextDeleteForm.php - Form submission handler.
File
- page_manager_ui/
src/ Form/ StaticContextDeleteForm.php, line 90
Class
- StaticContextDeleteForm
- Provides a form for deleting an access condition.
Namespace
Drupal\page_manager_ui\FormCode
protected function getPageVariant($cached_values) {
if (isset($cached_values['page_variant'])) {
return $cached_values['page_variant'];
}
/** @var $page \Drupal\page_manager\PageInterface */
$page = $cached_values['page'];
return $page
->getVariant($this->variantMachineName);
}