forked from mglaman/phpstan-drupal
-
Notifications
You must be signed in to change notification settings - Fork 0
/
extension.neon
337 lines (284 loc) · 10.3 KB
/
extension.neon
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
parameters:
bootstrapFiles:
- drupal-autoloader.php
excludePaths:
- '*.api.php'
- '*/tests/fixtures/*.php'
fileExtensions:
- module
- theme
- inc
- install
- profile
- engine
dynamicConstantNames:
- Drupal::VERSION
scanFiles:
- stubs/Twig/functions.stub
drupal:
drupal_root:
bleedingEdge:
checkDeprecatedHooksInApiFiles: false
checkCoreDeprecatedHooksInApiFiles: false
checkContribDeprecatedHooksInApiFiles: false
rules:
testClassSuffixNameRule: false
dependencySerializationTraitPropertyRule: false
accessResultConditionRule: false
classExtendsInternalClassRule: true
pluginManagerInspectionRule: false
entityMapping:
aggregator_feed:
class: Drupal\aggregator\Entity\Feed
storage: Drupal\aggregator\FeedStorage
aggregator_item:
class: Drupal\aggregator\Entity\Item
storage: Drupal\aggregator\ItemStorage
block:
class: Drupal\block\Entity\Block
storage: Drupal\Core\Config\Entity\ConfigEntityStorage
block_content:
class: Drupal\block_content\Entity\BlockContent
storage: Drupal\Core\Entity\Sql\SqlContentEntityStorage
block_content_type:
class: Drupal\block_content\Entity\BlockContentType
storage: Drupal\Core\Config\Entity\ConfigEntityStorage
comment_type:
class: Drupal\comment\Entity\CommentType
storage: Drupal\Core\Config\Entity\ConfigEntityStorage
comment:
class: Drupal\comment\Entity\Comment
storage: Drupal\comment\CommentStorage
contact_form:
class: Drupal\contact\Entity\ContactForm
storage: Drupal\Core\Config\Entity\ConfigEntityStorage
contact_message:
class: Drupal\contact\Entity\Message
storage: Drupal\Core\Entity\ContentEntityNullStorage
content_moderation_state:
class: Drupal\content_moderation\Entity\ContentModerationState
storage: Drupal\Core\Entity\Sql\SqlContentEntityStorage
editor:
class: Drupal\editor\Entity\Editor
storage: Drupal\Core\Config\Entity\ConfigEntityStorage
field_config:
class: Drupal\field\Entity\FieldConfig
storage: Drupal\field\FieldConfigStorage
field_storage_config:
class: Drupal\field\Entity\FieldStorageConfig
storage: Drupal\field\FieldStorageConfigStorage
file:
class: Drupal\file\Entity\File
storage: Drupal\file\FileStorage
filter_format:
class: Drupal\filter\Entity\FilterFormat
storage: Drupal\Core\Config\Entity\ConfigEntityStorage
image_style:
class: Drupal\image\Entity\ImageStyle
storage: Drupal\image\ImageStyleStorage
imce_profile:
class: Drupal\imce\Entity\ImceProfile
storage: Drupal\Core\Config\Entity\ConfigEntityStorage
configurable_language:
class: Drupal\language\Entity\ConfigurableLanguage
storage: Drupal\Core\Config\Entity\ConfigEntityStorage
language_content_settings:
class: Drupal\language\Entity\ContentLanguageSettings
storage: Drupal\Core\Config\Entity\ConfigEntityStorage
media_type:
class: Drupal\media\Entity\MediaType
storage: Drupal\Core\Config\Entity\ConfigEntityStorage
media:
class: Drupal\media\Entity\Media
storage: Drupal\media\MediaStorage
menu_link_content:
class: Drupal\menu_link_content\Entity\MenuLinkContent
storage: \Drupal\menu_link_content\MenuLinkContentStorage
metatag_defaults:
class: Drupal\metatag\Entity\MetatagDefaults
storage: Drupal\Core\Config\Entity\ConfigEntityStorage
node_type:
class: Drupal\node\Entity\NodeType
storage: Drupal\Core\Config\Entity\ConfigEntityStorage
node:
class: Drupal\node\Entity\Node
storage: Drupal\node\NodeStorage
path_alias:
class: Drupal\path_alias\Entity\PathAlias
storage: Drupal\path_alias\PathAliasStorage
rdf_mapping:
class: Drupal\rdf\Entity\RdfMapping
storage: Drupal\Core\Config\Entity\ConfigEntityStorage
responsive_image_style:
class: Drupal\responsive_image\Entity\ResponsiveImageStyle
storage: Drupal\Core\Config\Entity\ConfigEntityStorage
search_page:
class: Drupal\search\Entity\SearchPage
storage: Drupal\Core\Config\Entity\ConfigEntityStorage
search_api_server:
class: Drupal\search_api\Entity\Server
storage: Drupal\search_api\Entity\SearchApiConfigEntityStorage
search_api_index:
class: Drupal\search_api\Entity\Index
storage: Drupal\search_api\Entity\SearchApiConfigEntityStorage
search_api_task:
class: Drupal\search_api\Entity\Task
storage: Drupal\Core\Entity\Sql\SqlContentEntityStorage
shortcut_set:
class: Drupal\shortcut\Entity\ShortcutSet
storage: Drupal\shortcut\ShortcutSetStorage
shortcut:
class: Drupal\shortcut\Entity\Shortcut
storage: Drupal\Core\Entity\Sql\SqlContentEntityStorage
action:
class: Drupal\system\Entity\Action
storage: Drupal\Core\Config\Entity\ConfigEntityStorage
menu:
class: Drupal\system\Entity\Menu
storage: Drupal\system\MenuStorage
taxonomy_term:
class: Drupal\taxonomy\Entity\Term
storage: Drupal\taxonomy\TermStorage
taxonomy_vocabulary:
class: Drupal\taxonomy\Entity\Vocabulary
storage: Drupal\taxonomy\VocabularyStorage
tour:
class: Drupal\tour\Entity\Tour
storage: Drupal\Core\Config\Entity\ConfigEntityStorage
user:
class: Drupal\user\Entity\User
storage: Drupal\user\UserStorage
user_role:
class: Drupal\user\Entity\Role
storage: Drupal\user\RoleStorage
webform:
class: Drupal\webform\Entity\Webform
storage: \Drupal\webform\WebformEntityStorage
webform_submission:
class: Drupal\webform\Entity\WebformSubmission
storage: Drupal\webform\WebformSubmissionStorage
webform_options:
class: Drupal\webform\Entity\WebformOptions
storage: \Drupal\webform\WebformOptionsStorage
workflow:
class: Drupal\workflows\Entity\Workflow
storage: Drupal\Core\Config\Entity\ConfigEntityStorage
pathauto_pattern:
class: Drupal\pathauto\Entity\PathautoPattern
storage: Drupal\Core\Config\Entity\ConfigEntityStorage
view:
class: Drupal\views\Entity\View
storage: Drupal\Core\Config\Entity\ConfigEntityStorage
date_format:
class: Drupal\Core\Datetime\Entity\DateFormat
storage: Drupal\Core\Config\Entity\ConfigEntityStorage
entity_form_mode:
class: Drupal\Core\Entity\Entity\EntityFormMode
storage: Drupal\Core\Config\Entity\ConfigEntityStorage
entity_view_display:
class: Drupal\layout_builder\Entity\LayoutBuilderEntityViewDisplay
storage: Drupal\layout_builder\Entity\LayoutBuilderEntityViewDisplayStorage
entity_form_display:
class: Drupal\Core\Entity\Entity\EntityFormDisplay
storage: Drupal\Core\Config\Entity\ConfigEntityStorage
entity_view_mode:
class: Drupal\Core\Entity\Entity\EntityViewMode
storage: Drupal\Core\Config\Entity\ConfigEntityStorage
base_field_override:
class: Drupal\Core\Field\Entity\BaseFieldOverride
storage: Drupal\Core\Field\BaseFieldOverrideStorage
parametersSchema:
drupal: structure([
drupal_root: schema(string(), nullable())
bleedingEdge: structure([
checkDeprecatedHooksInApiFiles: boolean()
checkCoreDeprecatedHooksInApiFiles: boolean()
checkContribDeprecatedHooksInApiFiles: boolean()
])
rules: structure([
testClassSuffixNameRule: boolean()
dependencySerializationTraitPropertyRule: boolean()
accessResultConditionRule: boolean()
classExtendsInternalClassRule: boolean()
pluginManagerInspectionRule: boolean()
])
entityMapping: arrayOf(anyOf(
structure([
class: string()
]),
structure([
class: string()
storage: string()
])
))
])
services:
-
class: mglaman\PHPStanDrupal\Drupal\ServiceMap
-
class: mglaman\PHPStanDrupal\Drupal\ExtensionMap
-
class: mglaman\PHPStanDrupal\Drupal\EntityDataRepository
arguments:
entityMapping: %drupal.entityMapping%
-
class: mglaman\PHPStanDrupal\Type\EntityTypeManagerGetStorageDynamicReturnTypeExtension
tags: [phpstan.broker.dynamicMethodReturnTypeExtension]
-
class: mglaman\PHPStanDrupal\Type\EntityStorage\EntityStorageDynamicReturnTypeExtension
tags: [phpstan.broker.dynamicMethodReturnTypeExtension]
-
class: mglaman\PHPStanDrupal\Type\EntityRepositoryReturnTypeExtension
tags: [phpstan.broker.dynamicMethodReturnTypeExtension]
-
class: mglaman\PHPStanDrupal\Type\EntityStorage\GetQueryReturnTypeExtension
tags: [phpstan.broker.dynamicMethodReturnTypeExtension]
-
class: mglaman\PHPStanDrupal\Type\ContainerDynamicReturnTypeExtension
tags: [phpstan.broker.dynamicMethodReturnTypeExtension]
-
class: mglaman\PHPStanDrupal\Type\DrupalClassResolverDynamicReturnTypeExtension
tags: [phpstan.broker.dynamicMethodReturnTypeExtension]
-
class: mglaman\PHPStanDrupal\Type\EntityQuery\EntityQueryDynamicReturnTypeExtension
tags: [phpstan.broker.dynamicMethodReturnTypeExtension]
-
class: mglaman\PHPStanDrupal\Type\EntityQuery\EntityQueryAccessCheckDynamicReturnTypeExtension
tags: [phpstan.broker.dynamicMethodReturnTypeExtension]
-
class: mglaman\PHPStanDrupal\Type\EntityAccessControlHandlerReturnTypeExtension
tags: [phpstan.broker.dynamicMethodReturnTypeExtension]
-
class: mglaman\PHPStanDrupal\Type\DrupalClassResolverDynamicStaticReturnTypeExtension
tags: [phpstan.broker.dynamicStaticMethodReturnTypeExtension]
-
class: mglaman\PHPStanDrupal\Type\DrupalServiceDynamicReturnTypeExtension
tags: [phpstan.broker.dynamicStaticMethodReturnTypeExtension]
-
class: mglaman\PHPStanDrupal\Type\DrupalStaticEntityQueryDynamicReturnTypeExtension
tags: [phpstan.broker.dynamicStaticMethodReturnTypeExtension]
-
class: mglaman\PHPStanDrupal\Reflection\EntityFieldsViaMagicReflectionExtension
tags: [phpstan.broker.propertiesClassReflectionExtension]
-
class: mglaman\PHPStanDrupal\Reflection\EntityFieldMethodsViaMagicReflectionExtension
tags: [phpstan.broker.methodsClassReflectionExtension]
-
class: mglaman\PHPStanDrupal\Drupal\DrupalStubFilesExtension
tags: [phpstan.stubFilesExtension]
-
class: mglaman\PHPStanDrupal\Type\EntityQuery\AccessCheckTypeSpecifyingExtension
tags:
- phpstan.typeSpecifier.methodTypeSpecifyingExtension
-
class: mglaman\PHPStanDrupal\DeprecatedScope\GroupLegacyScope
tags:
- phpstan.deprecations.deprecatedScopeResolver
-
class: mglaman\PHPStanDrupal\DeprecatedScope\IgnoreDeprecationsScope
tags:
- phpstan.deprecations.deprecatedScopeResolver
-
class: mglaman\PHPStanDrupal\DeprecatedScope\DeprecationHelperScope
tags:
- phpstan.deprecations.deprecatedScopeResolver