You are here

protected function PageAccessForm::getOperationsRouteInfo in Page Manager 8

Same name and namespace in other branches
  1. 8.4 page_manager_ui/src/Form/PageAccessForm.php \Drupal\page_manager_ui\Form\PageAccessForm::getOperationsRouteInfo()

Document the route name and parameters for edit/delete context operations.

The route name returned from this method is used as a "base" to which ".edit" and ".delete" are appended in the getOperations() method. Subclassing '\Drupal\ctools\Form\ConditionConfigure' and '\Drupal\ctools\Form\ConditionDelete' should set you up for using this approach quite seamlessly.

Parameters

mixed $cached_values:

string $machine_name:

string $row:

Return value

array In the format of return ['route.base.name', ['machine_name' => $machine_name, 'context' => $row]];

Overrides ManageConditions::getOperationsRouteInfo

File

page_manager_ui/src/Form/PageAccessForm.php, line 39
Contains \Drupal\page_manager_ui\Form\PageAccessForm.

Class

PageAccessForm

Namespace

Drupal\page_manager_ui\Form

Code

protected function getOperationsRouteInfo($cached_values, $machine_name, $row) {
  return [
    'entity.page.condition',
    [
      'machine_name' => $machine_name,
      'condition' => $row,
    ],
  ];
}