Skip to content

Commit bc63ae7

Browse files
committed
Fixing names.
1 parent b23972b commit bc63ae7

3 files changed

Lines changed: 5 additions & 6 deletions

File tree

src/Command/PersistQueryMapCommand.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,12 @@
99
use Symfony\Component\Console\Output\OutputInterface;
1010
use Symfony\Component\Console\Command\Command;
1111
use Drupal\Console\Core\Style\DrupalStyle;
12-
use Drupal\Console\Annotations\DrupalCommand;
1312

1413
/**
1514
* @package Drupal\graphql
1615
*
1716
* @DrupalCommand (
18-
* extension="graphql_query_map_entity",
17+
* extension="graphql",
1918
* extensionType="module"
2019
* )
2120
*/

src/Form/JsonQueryMapConfigForm.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,14 +54,14 @@ public function getFormId() {
5454
* {@inheritdoc}
5555
*/
5656
protected function getEditableConfigNames() {
57-
return ['graphql_query_map_json.config'];
57+
return ['graphql.query_map_json.config'];
5858
}
5959

6060
/**
6161
* {@inheritdoc}
6262
*/
6363
public function buildForm(array $form, FormStateInterface $form_state) {
64-
$config = $this->config('graphql_query_map_json.config');
64+
$config = $this->config('graphql.query_map_json.config');
6565

6666
$form['lookup_paths'] = [
6767
'#type' => 'textarea',
@@ -80,7 +80,7 @@ public function submitForm(array &$form, FormStateInterface $form_state) {
8080
$this->cacheBackend->delete('graphql_query_map_json_versions');
8181

8282
$paths = array_map('trim', explode("\n", $form_state->getValue('lookup_paths', '')));
83-
$this->config('graphql_query_map_json.config')
83+
$this->config('graphql.query_map_json.config')
8484
->set('lookup_paths', $paths)
8585
->save();
8686

src/QueryMapProvider/JsonQueryMapProvider.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ class JsonQueryMapProvider implements QueryMapProviderInterface {
3030
* The config factory.
3131
*/
3232
public function __construct(CacheBackendInterface $cacheBackend, ConfigFactoryInterface $configFactory) {
33-
$this->lookupPaths = $configFactory->get('graphql_query_map_json.config')->get('lookup_paths');
33+
$this->lookupPaths = $configFactory->get('graphql.query_map_json.config')->get('lookup_paths');
3434
$this->cacheBackend = $cacheBackend;
3535
}
3636

0 commit comments

Comments
 (0)