protected function AddVariantContextsForm::getRelationshipOperationsRouteInfo in Page Manager 8
Same name and namespace in other branches
- 8.4 page_manager_ui/src/Form/AddVariantContextsForm.php \Drupal\page_manager_ui\Form\AddVariantContextsForm::getRelationshipOperationsRouteInfo()
Parameters
mixed $cached_values:
string $machine_name:
string $row:
Return value
array
Overrides ManageContext::getRelationshipOperationsRouteInfo
File
- page_manager_ui/
src/ Form/ AddVariantContextsForm.php, line 111 - Contains \Drupal\page_manager_ui\Form\AddVariantContextsForm.
Class
Namespace
Drupal\page_manager_ui\FormCode
protected function getRelationshipOperationsRouteInfo($cached_values, $machine_name, $row) {
/** @var \Drupal\page_manager\PageVariantInterface $page_variant */
$page_variant = $cached_values['page_variant'];
return [
'entity.page_variant.add_step_form.context',
[
'page' => $page_variant
->getPage()
->id(),
'machine_name' => $machine_name,
'context_id' => $row,
],
];
}