function ManageConditions::getOperationsRouteInfo
Same name in other branches
- 8.x-3.x src/Form/ManageConditions.php \Drupal\ctools\Form\ManageConditions::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]];
3 calls to ManageConditions::getOperationsRouteInfo()
- ManageConditions::add in src/
Form/ ManageConditions.php - ManageConditions::renderRows in src/
Form/ ManageConditions.php - ManageConditions::submitForm in src/
Form/ ManageConditions.php - Form submission handler.
File
-
src/
Form/ ManageConditions.php, line 236
Class
Namespace
Drupal\ctools\FormCode
protected abstract function getOperationsRouteInfo($cached_values, $machine_name, $row);