@@ 166-172 (lines=7) @@ | ||
163 | function graphql_graphql_schema_operations($pluginId, array $pluginDefinition) { |
|
164 | $operations = []; |
|
165 | ||
166 | if (\Drupal::currentUser()->hasPermission('use graphql explorer')) { |
|
167 | $operations['explorer'] = [ |
|
168 | 'title' => 'Explorer', |
|
169 | 'weight' => 10, |
|
170 | 'url' => Url::fromRoute("graphql.explorer.$pluginId"), |
|
171 | ]; |
|
172 | } |
|
173 | ||
174 | if (\Drupal::currentUser()->hasPermission('use graphql voyager')) { |
|
175 | $operations['voyager'] = [ |
|
@@ 174-180 (lines=7) @@ | ||
171 | ]; |
|
172 | } |
|
173 | ||
174 | if (\Drupal::currentUser()->hasPermission('use graphql voyager')) { |
|
175 | $operations['voyager'] = [ |
|
176 | 'title' => 'Voyager', |
|
177 | 'weight' => 10, |
|
178 | 'url' => Url::fromRoute("graphql.voyager.$pluginId"), |
|
179 | ]; |
|
180 | } |
|
181 | ||
182 | return $operations; |
|
183 | } |