abstract protected function RequiredContext::getOperationsRouteInfo in Chaos Tool Suite (ctools) 8.3
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\ContextConfigure' and '\Drupal\ctools\Form\RequiredContextDelete' 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]];
2 calls to RequiredContext::getOperationsRouteInfo()
- RequiredContext::renderContexts in src/
Form/ RequiredContext.php - RequiredContext::submitForm in src/
Form/ RequiredContext.php - Form submission handler.
File
- src/
Form/ RequiredContext.php, line 216
Class
Namespace
Drupal\ctools\FormCode
protected abstract function getOperationsRouteInfo($cached_values, $machine_name, $row);