@@ -102,10 +102,10 @@ public function form(array $form, FormStateInterface $formState) {
102102 }
103103
104104 $ form ['label ' ] = [
105- '#title ' => t ('Label ' ),
105+ '#title ' => $ this -> t ('Label ' ),
106106 '#type ' => 'textfield ' ,
107107 '#default_value ' => $ server ->label (),
108- '#description ' => t ('The human-readable name of this server. ' ),
108+ '#description ' => $ this -> t ('The human-readable name of this server. ' ),
109109 '#required ' => TRUE ,
110110 '#size ' => 30 ,
111111 ];
@@ -118,15 +118,15 @@ public function form(array $form, FormStateInterface $formState) {
118118 'exists ' => ['Drupal\graphql\Entity\Server ' , 'load ' ],
119119 'source ' => ['label ' ],
120120 ],
121- '#description ' => t ('A unique machine-readable name for this server. It must only contain lowercase letters, numbers, and underscores. ' ),
121+ '#description ' => $ this -> t ('A unique machine-readable name for this server. It must only contain lowercase letters, numbers, and underscores. ' ),
122122 ];
123123
124124 $ form ['schema ' ] = [
125- '#title ' => t ('Schema ' ),
125+ '#title ' => $ this -> t ('Schema ' ),
126126 '#type ' => 'select ' ,
127127 '#options ' => $ schemas ,
128128 '#default_value ' => $ schema ,
129- '#description ' => t ('The schema to use with this server. ' ),
129+ '#description ' => $ this -> t ('The schema to use with this server. ' ),
130130 '#ajax ' => [
131131 'callback ' => '::ajaxSchemaConfigurationForm ' ,
132132 'progress ' => [
@@ -158,34 +158,34 @@ public function form(array $form, FormStateInterface $formState) {
158158 }
159159
160160 $ form ['endpoint ' ] = [
161- '#title ' => t ('Endpoint ' ),
161+ '#title ' => $ this -> t ('Endpoint ' ),
162162 '#type ' => 'textfield ' ,
163163 '#default_value ' => $ server ->get ('endpoint ' ),
164- '#description ' => t ('The endpoint for http queries. Has to start with a forward slash. For example "/graphql". ' ),
164+ '#description ' => $ this -> t ('The endpoint for http queries. Has to start with a forward slash. For example "/graphql". ' ),
165165 '#required ' => TRUE ,
166166 '#size ' => 30 ,
167167 '#field_prefix ' => $ this ->requestContext ->getCompleteBaseUrl (),
168168 ];
169169
170170 $ form ['batching ' ] = [
171- '#title ' => t ('Allow query batching ' ),
171+ '#title ' => $ this -> t ('Allow query batching ' ),
172172 '#type ' => 'checkbox ' ,
173173 '#default_value ' => !!$ server ->get ('batching ' ),
174- '#description ' => t ('Whether batched queries are allowed. ' ),
174+ '#description ' => $ this -> t ('Whether batched queries are allowed. ' ),
175175 ];
176176
177177 $ form ['caching ' ] = [
178- '#title ' => t ('Enable caching ' ),
178+ '#title ' => $ this -> t ('Enable caching ' ),
179179 '#type ' => 'checkbox ' ,
180180 '#default_value ' => !!$ server ->get ('caching ' ),
181- '#description ' => t ('Whether caching of queries and partial results is enabled. ' ),
181+ '#description ' => $ this -> t ('Whether caching of queries and partial results is enabled. ' ),
182182 ];
183183
184184 $ form ['debug ' ] = [
185- '#title ' => t ('Enable debugging ' ),
185+ '#title ' => $ this -> t ('Enable debugging ' ),
186186 '#type ' => 'checkbox ' ,
187187 '#default_value ' => !!$ server ->get ('debug ' ),
188- '#description ' => t ('In debugging mode, error messages contain more verbose information in the query response. ' ),
188+ '#description ' => $ this -> t ('In debugging mode, error messages contain more verbose information in the query response. ' ),
189189 ];
190190
191191 $ form ['actions ' ] = [
0 commit comments