protected function SchemaOverviewController::buildOperations in GraphQL 8.3
Builds a renderable list of operation links for a schema.
Parameters
string $pluginId: The plugin id.
array $pluginDefinition: The plugin definition array.
Return value
array A renderable array of operation links.
1 call to SchemaOverviewController::buildOperations()
- SchemaOverviewController::listSchemas in src/
Controller/ SchemaOverviewController.php - Renders a table of available schemas.
File
- src/
Controller/ SchemaOverviewController.php, line 97
Class
Namespace
Drupal\graphql\ControllerCode
protected function buildOperations($pluginId, array $pluginDefinition) {
$build = [
'#type' => 'operations',
'#links' => $this
->getOperations($pluginId, $pluginDefinition),
];
return $build;
}