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