|
@@ 120-126 (lines=7) @@
|
| 117 |
|
function graphql_graphql_schema_operations($pluginId, array $pluginDefinition) { |
| 118 |
|
$operations = []; |
| 119 |
|
|
| 120 |
|
if (\Drupal::currentUser()->hasPermission('use graphql explorer')) { |
| 121 |
|
$operations['explorer'] = [ |
| 122 |
|
'title' => 'Explorer', |
| 123 |
|
'weight' => 10, |
| 124 |
|
'url' => Url::fromRoute("graphql.explorer.$pluginId"), |
| 125 |
|
]; |
| 126 |
|
} |
| 127 |
|
|
| 128 |
|
if (\Drupal::currentUser()->hasPermission('use graphql voyager')) { |
| 129 |
|
$operations['voyager'] = [ |
|
@@ 128-134 (lines=7) @@
|
| 125 |
|
]; |
| 126 |
|
} |
| 127 |
|
|
| 128 |
|
if (\Drupal::currentUser()->hasPermission('use graphql voyager')) { |
| 129 |
|
$operations['voyager'] = [ |
| 130 |
|
'title' => 'Voyager', |
| 131 |
|
'weight' => 10, |
| 132 |
|
'url' => Url::fromRoute("graphql.voyager.$pluginId"), |
| 133 |
|
]; |
| 134 |
|
} |
| 135 |
|
|
| 136 |
|
return $operations; |
| 137 |
|
} |