@@ -55,7 +55,6 @@ class EntityDefinitionTest extends GraphQLTestBase {
5555 'isReference ' => FALSE ,
5656 'isHidden ' => FALSE ,
5757 'weight ' => 0 ,
58- 'settings ' => NULL ,
5958 ],
6059 1 =>
6160 [
@@ -71,7 +70,6 @@ class EntityDefinitionTest extends GraphQLTestBase {
7170 'isReference ' => FALSE ,
7271 'isHidden ' => FALSE ,
7372 'weight ' => 0 ,
74- 'settings ' => NULL ,
7573 ],
7674 2 =>
7775 [
@@ -87,7 +85,6 @@ class EntityDefinitionTest extends GraphQLTestBase {
8785 'isReference ' => FALSE ,
8886 'isHidden ' => FALSE ,
8987 'weight ' => 0 ,
90- 'settings ' => NULL ,
9188 ],
9289 3 =>
9390 [
@@ -103,7 +100,6 @@ class EntityDefinitionTest extends GraphQLTestBase {
103100 'isReference ' => FALSE ,
104101 'isHidden ' => FALSE ,
105102 'weight ' => 2 ,
106- 'settings ' => NULL ,
107103 ],
108104 4 =>
109105 [
@@ -119,7 +115,6 @@ class EntityDefinitionTest extends GraphQLTestBase {
119115 'isReference ' => TRUE ,
120116 'isHidden ' => FALSE ,
121117 'weight ' => 0 ,
122- 'settings ' => NULL ,
123118 ],
124119 5 =>
125120 [
@@ -135,7 +130,6 @@ class EntityDefinitionTest extends GraphQLTestBase {
135130 'isReference ' => FALSE ,
136131 'isHidden ' => FALSE ,
137132 'weight ' => 0 ,
138- 'settings ' => NULL ,
139133 ],
140134 6 =>
141135 [
@@ -151,7 +145,6 @@ class EntityDefinitionTest extends GraphQLTestBase {
151145 'isReference ' => TRUE ,
152146 'isHidden ' => FALSE ,
153147 'weight ' => 0 ,
154- 'settings ' => NULL ,
155148 ],
156149 7 =>
157150 [
@@ -167,7 +160,6 @@ class EntityDefinitionTest extends GraphQLTestBase {
167160 'isReference ' => FALSE ,
168161 'isHidden ' => FALSE ,
169162 'weight ' => 25 ,
170- 'settings ' => NULL ,
171163 ],
172164 8 =>
173165 [
@@ -183,7 +175,6 @@ class EntityDefinitionTest extends GraphQLTestBase {
183175 'isReference ' => FALSE ,
184176 'isHidden ' => FALSE ,
185177 'weight ' => 120 ,
186- 'settings ' => NULL ,
187178 ],
188179 9 =>
189180 [
@@ -199,7 +190,6 @@ class EntityDefinitionTest extends GraphQLTestBase {
199190 'isReference ' => TRUE ,
200191 'isHidden ' => FALSE ,
201192 'weight ' => 5 ,
202- 'settings ' => NULL ,
203193 ],
204194 10 =>
205195 [
@@ -215,7 +205,6 @@ class EntityDefinitionTest extends GraphQLTestBase {
215205 'isReference ' => FALSE ,
216206 'isHidden ' => FALSE ,
217207 'weight ' => -5 ,
218- 'settings ' => NULL ,
219208 ],
220209 11 =>
221210 [
@@ -231,7 +220,6 @@ class EntityDefinitionTest extends GraphQLTestBase {
231220 'isReference ' => FALSE ,
232221 'isHidden ' => FALSE ,
233222 'weight ' => 10 ,
234- 'settings ' => NULL ,
235223 ],
236224 12 =>
237225 [
@@ -247,7 +235,6 @@ class EntityDefinitionTest extends GraphQLTestBase {
247235 'isReference ' => FALSE ,
248236 'isHidden ' => FALSE ,
249237 'weight ' => 0 ,
250- 'settings ' => NULL ,
251238 ],
252239 13 =>
253240 [
@@ -263,7 +250,6 @@ class EntityDefinitionTest extends GraphQLTestBase {
263250 'isReference ' => FALSE ,
264251 'isHidden ' => FALSE ,
265252 'weight ' => 15 ,
266- 'settings ' => NULL ,
267253 ],
268254 14 =>
269255 [
@@ -279,7 +265,6 @@ class EntityDefinitionTest extends GraphQLTestBase {
279265 'isReference ' => FALSE ,
280266 'isHidden ' => FALSE ,
281267 'weight ' => 16 ,
282- 'settings ' => NULL ,
283268 ],
284269 15 =>
285270 [
@@ -295,7 +280,6 @@ class EntityDefinitionTest extends GraphQLTestBase {
295280 'isReference ' => FALSE ,
296281 'isHidden ' => FALSE ,
297282 'weight ' => 0 ,
298- 'settings ' => NULL ,
299283 ],
300284 16 =>
301285 [
@@ -311,7 +295,6 @@ class EntityDefinitionTest extends GraphQLTestBase {
311295 'isReference ' => FALSE ,
312296 'isHidden ' => FALSE ,
313297 'weight ' => 0 ,
314- 'settings ' => NULL ,
315298 ],
316299 17 =>
317300 [
@@ -327,7 +310,6 @@ class EntityDefinitionTest extends GraphQLTestBase {
327310 'isReference ' => FALSE ,
328311 'isHidden ' => FALSE ,
329312 'weight ' => 0 ,
330- 'settings ' => NULL ,
331313 ],
332314 18 =>
333315 [
@@ -343,7 +325,6 @@ class EntityDefinitionTest extends GraphQLTestBase {
343325 'isReference ' => FALSE ,
344326 'isHidden ' => TRUE ,
345327 'weight ' => 0 ,
346- 'settings ' => NULL ,
347328 ],
348329 ],
349330 ],
@@ -403,11 +384,8 @@ public function setUp(): void {
403384 isReference: Boolean
404385 isHidden: Boolean
405386 weight: Int
406- settings: [KeyValue]
407387 }
408388
409- scalar KeyValue
410-
411389 enum FieldTypes {
412390 ALL
413391 BASE_FIELDS
@@ -516,12 +494,6 @@ enum FieldTypes {
516494 'entity_form_display_context ' => $ builder ->fromContext ('entity_form_display ' ),
517495 ])
518496 );
519- $ registry ->addFieldResolver ('EntityDefinitionField ' , 'settings ' ,
520- $ builder ->produce ('translatable_entity_definition_field_settings ' , [
521- 'entity_definition_field ' => $ builder ->fromParent (),
522- 'entity_form_display_context ' => $ builder ->fromContext ('entity_form_display ' ),
523- ])
524- );
525497 }
526498
527499 /**
@@ -545,7 +517,6 @@ public function testEntityDefinition(): void {
545517 isReference
546518 isHidden
547519 weight
548- settings
549520 }
550521 }
551522 }
@@ -576,7 +547,6 @@ public function testBaseFieldFilter(): void {
576547 isReference
577548 isHidden
578549 weight
579- settings
580550 }
581551 }
582552 }
@@ -610,7 +580,6 @@ public function testConfiguredFieldFilter(): void {
610580 isReference
611581 isHidden
612582 weight
613- settings
614583 }
615584 }
616585 }
@@ -624,15 +593,6 @@ public function testConfiguredFieldFilter(): void {
624593 $ this ->assertResults ($ query , [], $ expectedResult );
625594 }
626595
627- /**
628- * {@inheritdoc}
629- */
630- protected function defaultCacheMaxAge (): int {
631- // @todo this is wrong, we should have a maximum of caching for entity
632- // definitions, not 0.
633- return 0 ;
634- }
635-
636596 /**
637597 * {@inheritdoc}
638598 */
0 commit comments