periplus-map 0.2.1__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (272) hide show
  1. periplus/__init__.py +70 -0
  2. periplus/checkmap.py +80 -0
  3. periplus/cli.py +658 -0
  4. periplus/contract/schema/map.schema.json +138 -0
  5. periplus/contract/schema/navigation.schema.json +200 -0
  6. periplus/contract/schema/pack-file.schema.json +1405 -0
  7. periplus/contract/schema/pack-manifest.schema.json +245 -0
  8. periplus/contract/schema/project-settings.schema.json +85 -0
  9. periplus/contract/spec/engine.md +151 -0
  10. periplus/contract/spec/rules.md +352 -0
  11. periplus/detect.py +228 -0
  12. periplus/engine/__init__.py +5 -0
  13. periplus/engine/check.py +481 -0
  14. periplus/engine/emit.py +368 -0
  15. periplus/engine/packload.py +2321 -0
  16. periplus/engine/pattern.py +27 -0
  17. periplus/engine/rules.py +1946 -0
  18. periplus/engine/select.py +491 -0
  19. periplus/engine/source.py +172 -0
  20. periplus/engine/tree.py +424 -0
  21. periplus/errors.py +332 -0
  22. periplus/init.py +358 -0
  23. periplus/layout.py +28 -0
  24. periplus/manifest.py +498 -0
  25. periplus/map.py +364 -0
  26. periplus/navigate/__init__.py +1 -0
  27. periplus/navigate/find.py +143 -0
  28. periplus/navigate/ids.py +30 -0
  29. periplus/navigate/listing.py +42 -0
  30. periplus/navigate/mapfile.py +189 -0
  31. periplus/navigate/path.py +175 -0
  32. periplus/navigate/show.py +175 -0
  33. periplus/navigate/types.py +83 -0
  34. periplus/navigate/walk.py +138 -0
  35. periplus/packs/advancedqueue_basic@0.0.1/pack.yaml +14 -0
  36. periplus/packs/advancedqueue_basic@0.0.1/queue_job_type/queue_job_type.yaml +9 -0
  37. periplus/packs/advancedqueue_basic@0.0.1/queue_job_type/queue_job_type_annotation.yaml +43 -0
  38. periplus/packs/advancedqueue_basic@0.0.1/queue_job_type/queue_job_type_attribute.yaml +43 -0
  39. periplus/packs/ai_basic@0.0.1/ai_agent/ai_agent.yaml +8 -0
  40. periplus/packs/ai_basic@0.0.1/ai_agent/ai_agent_attribute.yaml +43 -0
  41. periplus/packs/ai_basic@0.0.1/ai_function_call/ai_function_call.yaml +8 -0
  42. periplus/packs/ai_basic@0.0.1/ai_function_call/ai_function_call_attribute.yaml +43 -0
  43. periplus/packs/ai_basic@0.0.1/pack.yaml +15 -0
  44. periplus/packs/config_pages_basic@0.0.1/bundle/config_pages_bundle_config.yaml +54 -0
  45. periplus/packs/config_pages_basic@0.0.1/pack.yaml +11 -0
  46. periplus/packs/crop_basic@0.0.1/bundle/crop_bundle_config.yaml +54 -0
  47. periplus/packs/crop_basic@0.0.1/pack.yaml +11 -0
  48. periplus/packs/drupal@0.1.0/block/block_placement.yaml +25 -0
  49. periplus/packs/drupal@0.1.0/block/block_placement_code.yaml +58 -0
  50. periplus/packs/drupal@0.1.0/block/block_placement_config.yaml +53 -0
  51. periplus/packs/drupal@0.1.0/block/block_plugin.yaml +52 -0
  52. periplus/packs/drupal@0.1.0/block/block_plugin_altered.yaml +61 -0
  53. periplus/packs/drupal@0.1.0/block/block_plugin_annotation.yaml +69 -0
  54. periplus/packs/drupal@0.1.0/block/block_plugin_attribute.yaml +56 -0
  55. periplus/packs/drupal@0.1.0/block/block_plugin_content.yaml +46 -0
  56. periplus/packs/drupal@0.1.0/block/block_plugin_derived.yaml +110 -0
  57. periplus/packs/drupal@0.1.0/block/block_plugin_deriver.yaml +30 -0
  58. periplus/packs/drupal@0.1.0/block/block_type.yaml +14 -0
  59. periplus/packs/drupal@0.1.0/block/block_type_code.yaml +43 -0
  60. periplus/packs/drupal@0.1.0/block/block_type_config.yaml +45 -0
  61. periplus/packs/drupal@0.1.0/cache/cache.yaml +18 -0
  62. periplus/packs/drupal@0.1.0/cache/cache_backend.yaml +31 -0
  63. periplus/packs/drupal@0.1.0/component/sdc.yaml +19 -0
  64. periplus/packs/drupal@0.1.0/component/sdc_definition.yaml +25 -0
  65. periplus/packs/drupal@0.1.0/component/sdc_use.yaml +25 -0
  66. periplus/packs/drupal@0.1.0/config/config_object.yaml +65 -0
  67. periplus/packs/drupal@0.1.0/display/display.yaml +32 -0
  68. periplus/packs/drupal@0.1.0/display/display_code.yaml +53 -0
  69. periplus/packs/drupal@0.1.0/display/display_config.yaml +95 -0
  70. periplus/packs/drupal@0.1.0/entity/entity.yaml +33 -0
  71. periplus/packs/drupal@0.1.0/entity/entity_class.yaml +60 -0
  72. periplus/packs/drupal@0.1.0/entity/entity_save.yaml +27 -0
  73. periplus/packs/drupal@0.1.0/entity/entity_type_annotation.yaml +85 -0
  74. periplus/packs/drupal@0.1.0/entity/entity_type_attribute.yaml +76 -0
  75. periplus/packs/drupal@0.1.0/field/field_instance_code.yaml +40 -0
  76. periplus/packs/drupal@0.1.0/field/field_instance_config.yaml +58 -0
  77. periplus/packs/drupal@0.1.0/field/field_storage.yaml +37 -0
  78. periplus/packs/drupal@0.1.0/field/field_storage_code.yaml +39 -0
  79. periplus/packs/drupal@0.1.0/field/field_storage_config.yaml +24 -0
  80. periplus/packs/drupal@0.1.0/form/form.yaml +48 -0
  81. periplus/packs/drupal@0.1.0/form/form_class.yaml +50 -0
  82. periplus/packs/drupal@0.1.0/form/form_id.yaml +48 -0
  83. periplus/packs/drupal@0.1.0/form/form_methods.yaml +39 -0
  84. periplus/packs/drupal@0.1.0/hook/hook.yaml +8 -0
  85. periplus/packs/drupal@0.1.0/hook/hook_attribute.yaml +28 -0
  86. periplus/packs/drupal@0.1.0/module/module.yaml +8 -0
  87. periplus/packs/drupal@0.1.0/module/module_info.yaml +50 -0
  88. periplus/packs/drupal@0.1.0/pack.yaml +184 -0
  89. periplus/packs/drupal@0.1.0/plugin/plugin.yaml +17 -0
  90. periplus/packs/drupal@0.1.0/plugin/plugin_annotation.yaml +120 -0
  91. periplus/packs/drupal@0.1.0/recommendations/recommendations.yaml +14 -0
  92. periplus/packs/drupal@0.1.0/service/service.yaml +19 -0
  93. periplus/packs/drupal@0.1.0/service/service_autowire.yaml +28 -0
  94. periplus/packs/drupal@0.1.0/service/service_definition.yaml +24 -0
  95. periplus/packs/drupal@0.1.0/service/service_use.yaml +43 -0
  96. periplus/packs/drupal_basic@0.3.0/action/action.yaml +9 -0
  97. periplus/packs/drupal_basic@0.3.0/action/action_annotation.yaml +43 -0
  98. periplus/packs/drupal_basic@0.3.0/action/action_attribute.yaml +43 -0
  99. periplus/packs/drupal_basic@0.3.0/block/block_placement.yaml +16 -0
  100. periplus/packs/drupal_basic@0.3.0/block/block_placement_config.yaml +51 -0
  101. periplus/packs/drupal_basic@0.3.0/block_plugin/block_plugin.yaml +14 -0
  102. periplus/packs/drupal_basic@0.3.0/block_plugin/block_plugin_annotation.yaml +47 -0
  103. periplus/packs/drupal_basic@0.3.0/block_plugin/block_plugin_attribute.yaml +43 -0
  104. periplus/packs/drupal_basic@0.3.0/block_type/block_type.yaml +8 -0
  105. periplus/packs/drupal_basic@0.3.0/block_type/block_type_config.yaml +54 -0
  106. periplus/packs/drupal_basic@0.3.0/boundary/boundary_types.yaml +19 -0
  107. periplus/packs/drupal_basic@0.3.0/bundle/bundle.yaml +20 -0
  108. periplus/packs/drupal_basic@0.3.0/bundle/bundle_config.yaml +393 -0
  109. periplus/packs/drupal_basic@0.3.0/call/call.yaml +349 -0
  110. periplus/packs/drupal_basic@0.3.0/component/component.yaml +30 -0
  111. periplus/packs/drupal_basic@0.3.0/config/config_object.yaml +119 -0
  112. periplus/packs/drupal_basic@0.3.0/constraint/constraint.yaml +8 -0
  113. periplus/packs/drupal_basic@0.3.0/constraint/constraint_annotation.yaml +43 -0
  114. periplus/packs/drupal_basic@0.3.0/constraint/constraint_attribute.yaml +43 -0
  115. periplus/packs/drupal_basic@0.3.0/display/display.yaml +30 -0
  116. periplus/packs/drupal_basic@0.3.0/display/display_config.yaml +203 -0
  117. periplus/packs/drupal_basic@0.3.0/display/display_mode_config.yaml +60 -0
  118. periplus/packs/drupal_basic@0.3.0/entity_type/config_entity_type_annotation.yaml +46 -0
  119. periplus/packs/drupal_basic@0.3.0/entity_type/config_entity_type_attribute.yaml +43 -0
  120. periplus/packs/drupal_basic@0.3.0/entity_type/content_entity_type_annotation.yaml +46 -0
  121. periplus/packs/drupal_basic@0.3.0/entity_type/content_entity_type_attribute.yaml +43 -0
  122. periplus/packs/drupal_basic@0.3.0/entity_type/entity_type.yaml +16 -0
  123. periplus/packs/drupal_basic@0.3.0/field/field_instance_config.yaml +116 -0
  124. periplus/packs/drupal_basic@0.3.0/field/field_storage.yaml +21 -0
  125. periplus/packs/drupal_basic@0.3.0/field/field_storage_config.yaml +45 -0
  126. periplus/packs/drupal_basic@0.3.0/field_formatter/field_formatter.yaml +8 -0
  127. periplus/packs/drupal_basic@0.3.0/field_formatter/field_formatter_annotation.yaml +46 -0
  128. periplus/packs/drupal_basic@0.3.0/field_formatter/field_formatter_attribute.yaml +43 -0
  129. periplus/packs/drupal_basic@0.3.0/field_type/field_type_annotation.yaml +46 -0
  130. periplus/packs/drupal_basic@0.3.0/field_type/field_type_attribute.yaml +50 -0
  131. periplus/packs/drupal_basic@0.3.0/field_widget/field_widget_annotation.yaml +46 -0
  132. periplus/packs/drupal_basic@0.3.0/field_widget/field_widget_attribute.yaml +50 -0
  133. periplus/packs/drupal_basic@0.3.0/form/form_id.yaml +80 -0
  134. periplus/packs/drupal_basic@0.3.0/hook/hook.yaml +100 -0
  135. periplus/packs/drupal_basic@0.3.0/hook/hook_attribute.yaml +64 -0
  136. periplus/packs/drupal_basic@0.3.0/hook/hook_theme_include.yaml +34 -0
  137. periplus/packs/drupal_basic@0.3.0/library/library.yaml +12 -0
  138. periplus/packs/drupal_basic@0.3.0/library/library_definition.yaml +58 -0
  139. periplus/packs/drupal_basic@0.3.0/local_action/local_action.yaml +12 -0
  140. periplus/packs/drupal_basic@0.3.0/local_action/local_action_definition.yaml +49 -0
  141. periplus/packs/drupal_basic@0.3.0/mail/mail.yaml +8 -0
  142. periplus/packs/drupal_basic@0.3.0/mail/mail_attribute.yaml +43 -0
  143. periplus/packs/drupal_basic@0.3.0/media_source/media_source.yaml +8 -0
  144. periplus/packs/drupal_basic@0.3.0/media_source/media_source_annotation.yaml +43 -0
  145. periplus/packs/drupal_basic@0.3.0/media_source/media_source_attribute.yaml +79 -0
  146. periplus/packs/drupal_basic@0.3.0/menu_link/menu_link.yaml +18 -0
  147. periplus/packs/drupal_basic@0.3.0/menu_link/menu_link_definition.yaml +48 -0
  148. periplus/packs/drupal_basic@0.3.0/module/module.yaml +7 -0
  149. periplus/packs/drupal_basic@0.3.0/module/module_info.yaml +58 -0
  150. periplus/packs/drupal_basic@0.3.0/pack.yaml +528 -0
  151. periplus/packs/drupal_basic@0.3.0/permission/permission.yaml +7 -0
  152. periplus/packs/drupal_basic@0.3.0/permission/permission_definition.yaml +27 -0
  153. periplus/packs/drupal_basic@0.3.0/queue_worker/queue_worker.yaml +9 -0
  154. periplus/packs/drupal_basic@0.3.0/queue_worker/queue_worker_annotation.yaml +43 -0
  155. periplus/packs/drupal_basic@0.3.0/queue_worker/queue_worker_attribute.yaml +43 -0
  156. periplus/packs/drupal_basic@0.3.0/rest_resource/rest_resource.yaml +8 -0
  157. periplus/packs/drupal_basic@0.3.0/rest_resource/rest_resource_annotation.yaml +43 -0
  158. periplus/packs/drupal_basic@0.3.0/rest_resource/rest_resource_attribute.yaml +43 -0
  159. periplus/packs/drupal_basic@0.3.0/role/role.yaml +14 -0
  160. periplus/packs/drupal_basic@0.3.0/role/role_config.yaml +44 -0
  161. periplus/packs/drupal_basic@0.3.0/route/route.yaml +42 -0
  162. periplus/packs/drupal_basic@0.3.0/route/route_definition.yaml +113 -0
  163. periplus/packs/drupal_basic@0.3.0/route/route_options.yaml +55 -0
  164. periplus/packs/drupal_basic@0.3.0/route/route_requirements.yaml +108 -0
  165. periplus/packs/drupal_basic@0.3.0/service/service.yaml +56 -0
  166. periplus/packs/drupal_basic@0.3.0/service/service_definition.yaml +181 -0
  167. periplus/packs/drupal_basic@0.3.0/template/template.yaml +86 -0
  168. periplus/packs/drupal_basic@0.3.0/template/template_route_link.yaml +30 -0
  169. periplus/packs/drupal_basic@0.3.0/theme/theme.yaml +15 -0
  170. periplus/packs/drupal_basic@0.3.0/theme/theme_info.yaml +61 -0
  171. periplus/packs/drupal_basic@0.3.0/theme_hook/template_suggestion.yaml +29 -0
  172. periplus/packs/drupal_basic@0.3.0/theme_hook/theme_hook.yaml +87 -0
  173. periplus/packs/drupal_basic@0.3.0/theme_hook/theme_hook_render.yaml +20 -0
  174. periplus/packs/drupal_basic@0.3.0/url/url.yaml +88 -0
  175. periplus/packs/drupal_basic@0.3.0/views_plugin/views_field_attribute.yaml +80 -0
  176. periplus/packs/drupal_basic@0.3.0/views_plugin/views_filter_attribute.yaml +80 -0
  177. periplus/packs/drupal_basic@0.3.0/views_plugin/views_plugin.yaml +15 -0
  178. periplus/packs/drupal_basic@0.3.0/views_plugin/views_style_attribute.yaml +80 -0
  179. periplus/packs/drupal_js_basic@0.0.1/attachment/attachment.yaml +12 -0
  180. periplus/packs/drupal_js_basic@0.0.1/attachment/attachment_in_php.yaml +15 -0
  181. periplus/packs/drupal_js_basic@0.0.1/attachment/attachment_in_php_array.yaml +52 -0
  182. periplus/packs/drupal_js_basic@0.0.1/attachment/attachment_in_twig.yaml +26 -0
  183. periplus/packs/drupal_js_basic@0.0.1/attachment/php_function_holder.yaml +13 -0
  184. periplus/packs/drupal_js_basic@0.0.1/behavior/behavior.yaml +198 -0
  185. periplus/packs/drupal_js_basic@0.0.1/pack.yaml +153 -0
  186. periplus/packs/drupal_js_basic@0.0.1/setting/setting.yaml +13 -0
  187. periplus/packs/drupal_js_basic@0.0.1/setting/setting_in_js.yaml +15 -0
  188. periplus/packs/drupal_js_basic@0.0.1/setting/setting_in_php.yaml +92 -0
  189. periplus/packs/drush_basic@0.0.1/command/command.yaml +15 -0
  190. periplus/packs/drush_basic@0.0.1/command/command_annotation.yaml +60 -0
  191. periplus/packs/drush_basic@0.0.1/command/command_attribute.yaml +88 -0
  192. periplus/packs/drush_basic@0.0.1/pack.yaml +29 -0
  193. periplus/packs/eck_basic@0.0.1/bundle/eck_bundle_config.yaml +56 -0
  194. periplus/packs/eck_basic@0.0.1/entity_type/eck_entity_type_config.yaml +26 -0
  195. periplus/packs/eck_basic@0.0.1/pack.yaml +28 -0
  196. periplus/packs/go@0.0.2/interfaces/satisfies.yaml +47 -0
  197. periplus/packs/go@0.0.2/pack.yaml +51 -0
  198. periplus/packs/go@0.0.2/types/find_declarations.yaml +137 -0
  199. periplus/packs/go@0.0.2/types/node_types.yaml +36 -0
  200. periplus/packs/go_basic@0.0.3/pack.yaml +104 -0
  201. periplus/packs/go_basic@0.0.3/rules/calls.yaml +25 -0
  202. periplus/packs/go_basic@0.0.3/rules/declarations.yaml +40 -0
  203. periplus/packs/go_basic@0.0.3/rules/imports.yaml +16 -0
  204. periplus/packs/go_basic@0.0.3/types/node_types.yaml +15 -0
  205. periplus/packs/js_basic@0.0.1/function/function.yaml +68 -0
  206. periplus/packs/js_basic@0.0.1/pack.yaml +50 -0
  207. periplus/packs/laravel_basic@0.0.5/pack.yaml +313 -0
  208. periplus/packs/laravel_basic@0.0.5/rules/classes.yaml +42 -0
  209. periplus/packs/laravel_basic@0.0.5/rules/config.yaml +229 -0
  210. periplus/packs/laravel_basic@0.0.5/rules/routes.yaml +210 -0
  211. periplus/packs/laravel_basic@0.0.5/rules/types.yaml +50 -0
  212. periplus/packs/laravel_basic@0.0.5/rules/views.yaml +100 -0
  213. periplus/packs/paragraphs_basic@0.0.1/bundle/paragraph_bundle_config.yaml +54 -0
  214. periplus/packs/paragraphs_basic@0.0.1/pack.yaml +12 -0
  215. periplus/packs/php@0.1.0/edges/edge_kinds.yaml +64 -0
  216. periplus/packs/php@0.1.0/edges/find_calls.yaml +34 -0
  217. periplus/packs/php@0.1.0/edges/find_imports.yaml +18 -0
  218. periplus/packs/php@0.1.0/edges/find_member_access.yaml +22 -0
  219. periplus/packs/php@0.1.0/edges/find_structure.yaml +38 -0
  220. periplus/packs/php@0.1.0/embedded/embedded_regions.yaml +19 -0
  221. periplus/packs/php@0.1.0/imports/imports.yaml +20 -0
  222. periplus/packs/php@0.1.0/pack.yaml +117 -0
  223. periplus/packs/php@0.1.0/resolution/excluded_tokens.yaml +23 -0
  224. periplus/packs/php@0.1.0/resolution/resolution.yaml +35 -0
  225. periplus/packs/php@0.1.0/types/find_declarations.yaml +102 -0
  226. periplus/packs/php@0.1.0/types/node_types.yaml +55 -0
  227. periplus/packs/php_basic@0.2.0/edges/edge_kinds.yaml +48 -0
  228. periplus/packs/php_basic@0.2.0/edges/find_structure.yaml +750 -0
  229. periplus/packs/php_basic@0.2.0/imports/imports.yaml +19 -0
  230. periplus/packs/php_basic@0.2.0/pack.yaml +94 -0
  231. periplus/packs/php_basic@0.2.0/types/find_declarations.yaml +267 -0
  232. periplus/packs/php_basic@0.2.0/types/node_types.yaml +55 -0
  233. periplus/packs/profile_basic@0.0.1/bundle/profile_bundle_config.yaml +54 -0
  234. periplus/packs/profile_basic@0.0.1/pack.yaml +12 -0
  235. periplus/packs/salesforce_basic@0.0.1/event/salesforce_event.yaml +36 -0
  236. periplus/packs/salesforce_basic@0.0.1/pack.yaml +31 -0
  237. periplus/packs/salesforce_basic@0.0.1/salesforce_mapping/salesforce_mapping.yaml +19 -0
  238. periplus/packs/salesforce_basic@0.0.1/salesforce_mapping/salesforce_mapping_config.yaml +83 -0
  239. periplus/packs/salesforce_basic@0.0.1/salesforce_mapping_field/salesforce_mapping_field.yaml +8 -0
  240. periplus/packs/salesforce_basic@0.0.1/salesforce_mapping_field/salesforce_mapping_field_annotation.yaml +43 -0
  241. periplus/packs/twig@0.0.1/pack.yaml +26 -0
  242. periplus/packs/twig@0.0.1/types/template.yaml +57 -0
  243. periplus/packs/twig_basic@0.1.0/pack.yaml +11 -0
  244. periplus/packs/twig_tweak_basic@0.0.1/pack.yaml +27 -0
  245. periplus/packs/twig_tweak_basic@0.0.1/rules/block.yaml +20 -0
  246. periplus/packs/twig_tweak_basic@0.0.1/rules/entity.yaml +35 -0
  247. periplus/packs/twig_tweak_basic@0.0.1/rules/field.yaml +21 -0
  248. periplus/packs/twig_tweak_basic@0.0.1/rules/menu.yaml +21 -0
  249. periplus/packs/webform_basic@0.0.1/bundle/webform_submission_bundle_config.yaml +54 -0
  250. periplus/packs/webform_basic@0.0.1/pack.yaml +20 -0
  251. periplus/packs/webform_basic@0.0.1/webform_handler/webform_handler.yaml +8 -0
  252. periplus/packs/webform_basic@0.0.1/webform_handler/webform_handler_annotation.yaml +43 -0
  253. periplus/packs/yaml@0.0.1/pack.yaml +72 -0
  254. periplus/packs/yaml@0.0.1/types/find_mapping_entry.yaml +21 -0
  255. periplus/packs/yaml@0.0.1/types/yaml_types.yaml +44 -0
  256. periplus/packs/yaml_basic@0.1.0/pack.yaml +10 -0
  257. periplus/packs.py +447 -0
  258. periplus/preflight.py +102 -0
  259. periplus/py.typed +0 -0
  260. periplus/report.py +596 -0
  261. periplus/resolution.py +355 -0
  262. periplus/settings.py +617 -0
  263. periplus/settings.stub.yml +99 -0
  264. periplus/spec.py +774 -0
  265. periplus/update.py +197 -0
  266. periplus/validate.py +655 -0
  267. periplus_map-0.2.1.dist-info/METADATA +566 -0
  268. periplus_map-0.2.1.dist-info/RECORD +272 -0
  269. periplus_map-0.2.1.dist-info/WHEEL +4 -0
  270. periplus_map-0.2.1.dist-info/entry_points.txt +2 -0
  271. periplus_map-0.2.1.dist-info/licenses/LICENSE +202 -0
  272. periplus_map-0.2.1.dist-info/licenses/NOTICE +2 -0
@@ -0,0 +1,86 @@
1
+ $schema: "https://periplus.dev/schema/0/pack-file.schema.json"
2
+
3
+ # A template, named by its file: node--article.html.twig is node--article. A name that a module
4
+ # and a theme both define is one node with a location in each file. A template links a route
5
+ # when it calls path() or url() with the route's name.
6
+
7
+ node_types:
8
+ - name: drupal.template
9
+ id_namespace: drupal.template
10
+
11
+ edge_kinds:
12
+ - kind: template_links_route
13
+ from: drupal.template
14
+ to: drupal.route
15
+ - kind: template_includes
16
+ from: drupal.template
17
+ to: drupal.template
18
+ - kind: template_includes_component
19
+ from: drupal.template
20
+ to: drupal.component
21
+
22
+ rules:
23
+ - rule: template_file
24
+ reads: file
25
+ in:
26
+ - module_root
27
+ - theme_root
28
+ match:
29
+ file: '*.html'
30
+ filetype: twig
31
+ id:
32
+ from: file_stem
33
+ normalize:
34
+ - replace: \.html$
35
+ with: ''
36
+ emits:
37
+ - node:
38
+ type: drupal.template
39
+ confidence: declared
40
+
41
+ # A template another template includes: include, extends, embed, import or from naming a
42
+ # .html.twig file, as a tag or as the include() function, is an edge from the template to the
43
+ # one the name gives. The name is the file's stem, so '@theme/partials/card.html.twig' and
44
+ # 'card.html.twig' both name card. A component named '<theme>:<name>' in an include or embed is
45
+ # an edge to the component <name>. Read as text, like template_route_link.yaml; a call inside a
46
+ # Twig comment makes nothing. A name that no mapped template or component has ends at a
47
+ # referenced node.
48
+ - rule: template_included_in_template
49
+ reads: file
50
+ in:
51
+ - module_root
52
+ - theme_root
53
+ match:
54
+ file: '*.html'
55
+ filetype: drupal_template_text
56
+ text: '\b(?:include|extends|embed|import|from)\b\s*\(?\s*[''"](?:[^''"]*/)?(?<name>[^''"/:]+)\.html\.twig[''"]'
57
+ id:
58
+ template: '{template_name}'
59
+ emits:
60
+ - edge:
61
+ kind: template_includes
62
+ from: this_node
63
+ to:
64
+ from:
65
+ capture: name
66
+ confidence: declared
67
+
68
+ - rule: component_included_in_template
69
+ reads: file
70
+ in:
71
+ - module_root
72
+ - theme_root
73
+ match:
74
+ file: '*.html'
75
+ filetype: drupal_template_text
76
+ text: '\b(?:include|embed)\b\s*\(?\s*[''"][A-Za-z_][\w-]*:(?<name>[A-Za-z_][\w-]*)[''"]'
77
+ id:
78
+ template: '{template_name}'
79
+ emits:
80
+ - edge:
81
+ kind: template_includes_component
82
+ from: this_node
83
+ to:
84
+ from:
85
+ capture: name
86
+ confidence: declared
@@ -0,0 +1,30 @@
1
+ $schema: "https://periplus.dev/schema/0/pack-file.schema.json"
2
+
3
+ # A route a template links to: path('name') or url('name') in a <name>.html.twig file is an edge
4
+ # from the template to the route. Read as text, because a call is not a Twig tree node the twig
5
+ # grammar names. The route is the first quoted argument; <front> is a route name Drupal accepts.
6
+ # A call inside a Twig comment makes nothing. A call inside a quoted text or a verbatim block
7
+ # still gives an edge. A CSS url(...) in a style block names no route, because its argument is
8
+ # not a route name: the capture takes <front> or a name of letters, digits, underscores and dots.
9
+ # A route that no mapped routing file declares, such as user.login, ends at a referenced node.
10
+
11
+ rules:
12
+ - rule: route_linked_in_template
13
+ reads: file
14
+ in:
15
+ - module_root
16
+ - theme_root
17
+ match:
18
+ file: '*.html'
19
+ filetype: drupal_template_text
20
+ text: '\b(?:path|url)\(\s*[''"](?<route><front>|[A-Za-z_][\w.]*)[''"]'
21
+ id:
22
+ template: '{template_name}'
23
+ emits:
24
+ - edge:
25
+ kind: template_links_route
26
+ from: this_node
27
+ to:
28
+ from:
29
+ capture: route
30
+ confidence: declared
@@ -0,0 +1,15 @@
1
+ $schema: "https://periplus.dev/schema/0/pack-file.schema.json"
2
+
3
+ # A theme, named by its info file. A base theme outside the mapped folders stays referenced.
4
+
5
+ node_types:
6
+ - name: drupal.theme
7
+ id_namespace: drupal.theme
8
+
9
+ edge_kinds:
10
+ - kind: based_on_theme
11
+ from: drupal.theme
12
+ to: drupal.theme
13
+ - kind: uses_library
14
+ from: drupal.theme
15
+ to: drupal.library
@@ -0,0 +1,61 @@
1
+ $schema: "https://periplus.dev/schema/0/pack-file.schema.json"
2
+
3
+ # A theme read from its info file. The stem is simple_blog.info, so the id drops the .info ending.
4
+ # The base theme is written under the key 'base theme', with a space; a library as module/name.
5
+
6
+ rules:
7
+ - rule: theme_from_info_file
8
+ reads: file
9
+ in:
10
+ - theme_root
11
+ match:
12
+ file: '*.info'
13
+ filetype: yaml
14
+ where:
15
+ - key:
16
+ name: type
17
+ equals: theme
18
+ id:
19
+ from: file_stem
20
+ normalize:
21
+ - replace: \.info$
22
+ with: ''
23
+ emits:
24
+ - node:
25
+ type: drupal.theme
26
+ - attribute:
27
+ name: name
28
+ from:
29
+ key: name
30
+ confidence: declared
31
+ - rule: theme_from_info_file_edges
32
+ reads: file
33
+ in:
34
+ - theme_root
35
+ match:
36
+ file: '*.info'
37
+ filetype: yaml
38
+ where:
39
+ - key:
40
+ name: type
41
+ equals: theme
42
+ id:
43
+ from: file_stem
44
+ normalize:
45
+ - replace: \.info$
46
+ with: ''
47
+ emits:
48
+ - edge:
49
+ kind: based_on_theme
50
+ from: this_node
51
+ to:
52
+ from:
53
+ key: base theme
54
+ - edge:
55
+ kind: uses_library
56
+ from: this_node
57
+ to:
58
+ from:
59
+ key: libraries
60
+ each: true
61
+ confidence: declared
@@ -0,0 +1,29 @@
1
+ $schema: "https://periplus.dev/schema/0/pack-file.schema.json"
2
+
3
+ # An entity template suggestion names its bundle: node--article--teaser.html.twig is the
4
+ # template for the view mode teaser of the bundle node.article. Only the form <entity>--<bundle>--
5
+ # <view mode> of a core content entity links, with a bundle that starts with a letter, so
6
+ # node--full (a view mode or a bundle, the file cannot tell) and node--12 (a node id) link to
7
+ # nothing. The name is read at the end of the file, because most templates open with a comment.
8
+ edge_kinds:
9
+ - kind: suggests_bundle
10
+ from: drupal.template
11
+ to: drupal.bundle
12
+
13
+ rules:
14
+ - rule: template_suggests_bundle
15
+ reads: file
16
+ in:
17
+ - module_root
18
+ - theme_root
19
+ match:
20
+ file: '*.html'
21
+ filetype: drupal_template_text
22
+ text: '\Z'
23
+ id: {template: '{bundle_suggestion}'}
24
+ emits:
25
+ - edge:
26
+ kind: suggests_bundle
27
+ from: {template: '{template_name}', type: drupal.template}
28
+ to: this_node
29
+ confidence: inferred
@@ -0,0 +1,87 @@
1
+ $schema: "https://periplus.dev/schema/0/pack-file.schema.json"
2
+
3
+ # A theme hook: a name a render array gives '#theme' and a hook_theme function declares, as
4
+ # my_card. hook_theme returns one entry per hook, an array whose first key is one of the registry
5
+ # keys (variables, render element, template and the like); that first key tells a hook's entry
6
+ # from the 'variables' array inside it. An entry may also open with path or file when a registry
7
+ # key follows at its own bracket level; a variable default such as 'link' => ['path' => NULL]
8
+ # has none, so it does not read as a hook. An entry that opens with type, pattern or function is
9
+ # not found. A hook links to the template that renders it: the one
10
+ # its 'template' key names at confidence declared, and when the entry has neither a 'template'
11
+ # nor a 'function' key the hook name with underscores written as dashes, at confidence inferred.
12
+ # An entry is read inside a function named theme or ending in _theme, and a template or function
13
+ # key is found beside up to four levels of brackets.
14
+
15
+ node_types:
16
+ - name: drupal.theme_hook
17
+ id_namespace: drupal.theme_hook
18
+
19
+ edge_kinds:
20
+ - kind: theme_hook_template
21
+ from: drupal.theme_hook
22
+ to: drupal.template
23
+ - kind: renders_theme_hook
24
+ from: [php.class, php.trait, php.function]
25
+ to: drupal.theme_hook
26
+
27
+ rules:
28
+ - rule: theme_hook_entry
29
+ reads: file
30
+ in: [source]
31
+ match:
32
+ file: '**'
33
+ filetype: drupal_php_text
34
+ text: '[\[,(\s][''"](?<hook>(?!variables[''"])[A-Za-z][A-Za-z0-9_]*)[''"]\s*=>\s*(?=\[\s*[''"](?:variables|render element|template|base hook|initial preprocess|preprocess functions|theme path)[''"]\s*=>|\[\s*[''"](?:file|path)[''"]\s*=>(?:[^\[\]]|\[(?:[^\[\]]|\[(?:[^\[\]]|\[(?:[^\[\]]|\[[^\]]*\])*\])*\])*\])*?[''"](?:variables|render element|template|base hook|initial preprocess|preprocess functions|theme path)[''"]\s*=>)'
35
+ values:
36
+ in_theme: {from: {enclosing: hook_theme_body, capture: mark}}
37
+ id:
38
+ template: '{in_theme}|{hook}'
39
+ normalize:
40
+ - {replace: '^.*\|', with: ''}
41
+ line: {capture: hook}
42
+ emits: [{node: {type: drupal.theme_hook}}]
43
+ confidence: declared
44
+
45
+ - rule: theme_hook_template_key
46
+ reads: file
47
+ in: [source]
48
+ match:
49
+ file: '**'
50
+ filetype: drupal_php_text
51
+ text: '[\[,(\s][''"](?<hook>(?!variables[''"])[A-Za-z][A-Za-z0-9_]*)[''"]\s*=>\s*\[(?:(?![''"]template[''"]\s*=>)(?:[^\[\]]|\[(?:[^\[\]]|\[(?:[^\[\]]|\[(?:[^\[\]]|\[[^\]]*\])*\])*\])*\]))*[''"]template[''"]\s*=>\s*[''"](?<template>[A-Za-z0-9_-]+)[''"]'
52
+ values:
53
+ in_theme: {from: {enclosing: hook_theme_body, capture: mark}}
54
+ id:
55
+ template: '{in_theme}|{hook}'
56
+ normalize:
57
+ - {replace: '^.*\|', with: ''}
58
+ line: {capture: hook}
59
+ emits:
60
+ - edge:
61
+ kind: theme_hook_template
62
+ from: this_node
63
+ to: {from: {capture: template}}
64
+ confidence: declared
65
+
66
+ # The id of this rule is the template: the hook name with its underscores written as dashes.
67
+ - rule: theme_hook_default_template
68
+ reads: file
69
+ in: [source]
70
+ match:
71
+ file: '**'
72
+ filetype: drupal_php_text
73
+ text: '[\[,(\s][''"](?<hook>(?!variables[''"])[A-Za-z][A-Za-z0-9_]*)[''"]\s*=>\s*(?=\[\s*[''"](?:variables|render element|template|base hook|initial preprocess|preprocess functions|theme path)[''"]\s*=>|\[\s*[''"](?:file|path)[''"]\s*=>(?:[^\[\]]|\[(?:[^\[\]]|\[(?:[^\[\]]|\[(?:[^\[\]]|\[[^\]]*\])*\])*\])*\])*?[''"](?:variables|render element|template|base hook|initial preprocess|preprocess functions|theme path)[''"]\s*=>)(?=\[(?:(?![''"](?:template|function)[''"]\s*=>)(?:[^\[\]]|\[(?:[^\[\]]|\[(?:[^\[\]]|\[(?:[^\[\]]|\[[^\]]*\])*\])*\])*\]))*\])'
74
+ values:
75
+ in_theme: {from: {enclosing: hook_theme_body, capture: mark}}
76
+ id:
77
+ template: '{in_theme}|{hook}'
78
+ normalize:
79
+ - {replace: '^.*\|', with: ''}
80
+ - {replace: '_', with: '-'}
81
+ line: {capture: hook}
82
+ emits:
83
+ - edge:
84
+ kind: theme_hook_template
85
+ from: {from: {capture: hook}, type: drupal.theme_hook}
86
+ to: this_node
87
+ confidence: inferred
@@ -0,0 +1,20 @@
1
+ $schema: "https://periplus.dev/schema/0/pack-file.schema.json"
2
+
3
+ # '#theme' => 'my_card' in a class file under src: the class renders the theme hook. Read as
4
+ # text, as the '#attached' array is. A render array in a function of a module file gives no edge.
5
+ rules:
6
+ - rule: theme_hook_rendered_in_class
7
+ reads: file
8
+ in: [source]
9
+ match:
10
+ file: '**'
11
+ filetype: drupal_php_text
12
+ text: '[\[,(\s][''"]#theme[''"]\s*=>\s*[''"](?<hook>[A-Za-z][A-Za-z0-9_]*)[''"]'
13
+ id: {template: '{hook}'}
14
+ line: {capture: hook}
15
+ emits:
16
+ - edge:
17
+ kind: renders_theme_hook
18
+ from: {template: '{psr4_class}', types: [php.class]}
19
+ to: this_node
20
+ confidence: declared
@@ -0,0 +1,88 @@
1
+ $schema: "https://periplus.dev/schema/0/pack-file.schema.json"
2
+
3
+ # A URL written as a path string, joined to the route that serves that exact path. A route serves
4
+ # the path its routing file gives it, a route_serves_path edge in route/route_definition.yaml. A
5
+ # class or a function that builds a URL from a path names that path, a links_to_path edge:
6
+ # Url::fromUserInput('/x') and Url::fromUri('internal:/x'). A template's attribute value written
7
+ # whole as a path names it too. All meet at one drupal.url_path node,
8
+ # whose id is the path as written, so a route and a link reach each other through it. A path no
9
+ # route serves ends at a referenced node.
10
+ #
11
+ # Limits:
12
+ # - A call in a method links from the class around it, and one in a function from the function. A
13
+ # call in a trait, an enum or an interface gives no edge and goes under skipped.
14
+ # - A query string or a fragment stays in the id: /my/path?x=1 is a referenced path node of its
15
+ # own and meets no route. No reference end can cut a suffix from a call's argument.
16
+ # - A path is matched exactly. A route path with a placeholder, such as /my/item/{id}, meets no
17
+ # link: /my/item/5 is a referenced path node of its own.
18
+ # - new RedirectResponse('/x') gives no edge: the engine reads a call's argument by its field, and
19
+ # an object creation has none. Nor does fromUri with another scheme, such as route:, entity: or
20
+ # https:, which goes under skipped, nor a path built from a variable or a concatenation.
21
+ # - Url is matched by its short name or written in full, with or without a leading backslash.
22
+
23
+ node_types:
24
+ - name: drupal.url_path
25
+ id_namespace: drupal.url_path
26
+
27
+ edge_kinds:
28
+ - kind: route_serves_path
29
+ from: drupal.route
30
+ to: drupal.url_path
31
+ - kind: links_to_path
32
+ from: [php.class, php.function, drupal.template]
33
+ to: drupal.url_path
34
+
35
+ rules:
36
+ # Url::fromUserInput('/my/path').
37
+ - rule: user_input_url_call
38
+ reads: file
39
+ in: [source]
40
+ match:
41
+ reference: scoped_call_expression
42
+ name_child: [scope, name]
43
+ filetype: php
44
+ where:
45
+ - name_matches: {child: scope, pattern: '(?:\\?Drupal\\Core\\)?Url'}
46
+ - name_matches: {child: name, pattern: fromUserInput}
47
+ emits:
48
+ - edge:
49
+ kind: links_to_path
50
+ from: enclosing_declaration
51
+ to: {from: {argument: 0}, types: [drupal.url_path]}
52
+ confidence: declared
53
+
54
+ # Url::fromUri('internal:/my/path'): the scheme is cut by the resolution step, and a URI with any
55
+ # other scheme holds no step.
56
+ - rule: internal_uri_url_call
57
+ reads: file
58
+ in: [source]
59
+ match:
60
+ reference: scoped_call_expression
61
+ name_child: [scope, name]
62
+ filetype: php
63
+ where:
64
+ - name_matches: {child: scope, pattern: '(?:\\?Drupal\\Core\\)?Url'}
65
+ - name_matches: {child: name, pattern: fromUri}
66
+ emits:
67
+ - edge:
68
+ kind: links_to_path
69
+ from: enclosing_declaration
70
+ to: {from: {argument: 0}, resolve: [full_if_prefixed: 'internal:'], types: [drupal.url_path]}
71
+ confidence: declared
72
+
73
+ # data-endpoint="/my/path" or href="/my/path" in a <name>.html.twig file, read as text as
74
+ # template/template_route_link.yaml is. The = follows the attribute name with no space, so
75
+ # {% set url = '/my/path' %} makes nothing. The value starts with one / and holds no space, quote,
76
+ # brace or angle bracket, so "/", "//cdn.example.com/x" and "/my/{{ id }}" make nothing. An
77
+ # attribute inside a Twig comment makes nothing; one inside a verbatim block still gives an edge.
78
+ - rule: path_in_template_attribute
79
+ reads: file
80
+ in: [module_root, theme_root]
81
+ match:
82
+ file: '*.html'
83
+ filetype: drupal_template_text
84
+ text: '\s[\w:.-]+=["''](?<path>/[^/\s"''{}<>][^\s"''{}<>]*)["'']'
85
+ id: {from: {capture: path}}
86
+ # links_to_path starts at classes and functions too, so the template end names its type.
87
+ emits: [{edge: {kind: links_to_path, from: {template: '{template_name}', types: [drupal.template]}, to: this_node}}]
88
+ confidence: declared
@@ -0,0 +1,80 @@
1
+ $schema: "https://periplus.dev/schema/0/pack-file.schema.json"
2
+
3
+ # A views field plugin declared by the ViewsField attribute on its class. The id is the first argument,
4
+ # written alone or named id, and an attribute rule reads one of the two, so there is one node rule
5
+ # and one edge rule for each. An id that is not a text literal makes no plugin and is listed under
6
+ # skipped in the map report.
7
+
8
+ rules:
9
+ - rule: views_field_from_attribute
10
+ reads: file
11
+ in:
12
+ - views_field_classes
13
+ match:
14
+ attribute: Drupal\views\Attribute\ViewsField
15
+ filetype: php
16
+ where:
17
+ - applies_to: class_declaration
18
+ id:
19
+ from:
20
+ attribute_argument: '0'
21
+ must_be: string_literal
22
+ emits:
23
+ - node:
24
+ type: drupal.views_field_plugin
25
+ confidence: declared
26
+ - rule: views_field_from_named_attribute
27
+ reads: file
28
+ in:
29
+ - views_field_classes
30
+ match:
31
+ attribute: Drupal\views\Attribute\ViewsField
32
+ filetype: php
33
+ where:
34
+ - applies_to: class_declaration
35
+ id:
36
+ from:
37
+ attribute_argument: id
38
+ must_be: string_literal
39
+ emits:
40
+ - node:
41
+ type: drupal.views_field_plugin
42
+ confidence: declared
43
+ - rule: views_field_from_attribute_edges
44
+ reads: file
45
+ in:
46
+ - views_field_classes
47
+ match:
48
+ attribute: Drupal\views\Attribute\ViewsField
49
+ filetype: php
50
+ where:
51
+ - applies_to: class_declaration
52
+ id:
53
+ from:
54
+ attribute_argument: '0'
55
+ must_be: string_literal
56
+ emits:
57
+ - edge:
58
+ kind: plugin_class
59
+ from: this_node
60
+ to: enclosing_class
61
+ confidence: declared
62
+ - rule: views_field_from_named_attribute_edges
63
+ reads: file
64
+ in:
65
+ - views_field_classes
66
+ match:
67
+ attribute: Drupal\views\Attribute\ViewsField
68
+ filetype: php
69
+ where:
70
+ - applies_to: class_declaration
71
+ id:
72
+ from:
73
+ attribute_argument: id
74
+ must_be: string_literal
75
+ emits:
76
+ - edge:
77
+ kind: plugin_class
78
+ from: this_node
79
+ to: enclosing_class
80
+ confidence: declared
@@ -0,0 +1,80 @@
1
+ $schema: "https://periplus.dev/schema/0/pack-file.schema.json"
2
+
3
+ # A views filter plugin declared by the ViewsFilter attribute on its class. The id is the first argument,
4
+ # written alone or named id, and an attribute rule reads one of the two, so there is one node rule
5
+ # and one edge rule for each. An id that is not a text literal makes no plugin and is listed under
6
+ # skipped in the map report.
7
+
8
+ rules:
9
+ - rule: views_filter_from_attribute
10
+ reads: file
11
+ in:
12
+ - views_filter_classes
13
+ match:
14
+ attribute: Drupal\views\Attribute\ViewsFilter
15
+ filetype: php
16
+ where:
17
+ - applies_to: class_declaration
18
+ id:
19
+ from:
20
+ attribute_argument: '0'
21
+ must_be: string_literal
22
+ emits:
23
+ - node:
24
+ type: drupal.views_filter_plugin
25
+ confidence: declared
26
+ - rule: views_filter_from_named_attribute
27
+ reads: file
28
+ in:
29
+ - views_filter_classes
30
+ match:
31
+ attribute: Drupal\views\Attribute\ViewsFilter
32
+ filetype: php
33
+ where:
34
+ - applies_to: class_declaration
35
+ id:
36
+ from:
37
+ attribute_argument: id
38
+ must_be: string_literal
39
+ emits:
40
+ - node:
41
+ type: drupal.views_filter_plugin
42
+ confidence: declared
43
+ - rule: views_filter_from_attribute_edges
44
+ reads: file
45
+ in:
46
+ - views_filter_classes
47
+ match:
48
+ attribute: Drupal\views\Attribute\ViewsFilter
49
+ filetype: php
50
+ where:
51
+ - applies_to: class_declaration
52
+ id:
53
+ from:
54
+ attribute_argument: '0'
55
+ must_be: string_literal
56
+ emits:
57
+ - edge:
58
+ kind: plugin_class
59
+ from: this_node
60
+ to: enclosing_class
61
+ confidence: declared
62
+ - rule: views_filter_from_named_attribute_edges
63
+ reads: file
64
+ in:
65
+ - views_filter_classes
66
+ match:
67
+ attribute: Drupal\views\Attribute\ViewsFilter
68
+ filetype: php
69
+ where:
70
+ - applies_to: class_declaration
71
+ id:
72
+ from:
73
+ attribute_argument: id
74
+ must_be: string_literal
75
+ emits:
76
+ - edge:
77
+ kind: plugin_class
78
+ from: this_node
79
+ to: enclosing_class
80
+ confidence: declared
@@ -0,0 +1,15 @@
1
+ $schema: "https://periplus.dev/schema/0/pack-file.schema.json"
2
+
3
+ # Views field, filter and style plugins, each named by its plugin id; plugin_class joins each to its
4
+ # class. Views keeps one id list per plugin type, so each type has its own id namespace.
5
+
6
+ node_types:
7
+ - name: drupal.views_field_plugin
8
+ parent: drupal.plugin
9
+ id_namespace: drupal.plugin.views_field
10
+ - name: drupal.views_filter_plugin
11
+ parent: drupal.plugin
12
+ id_namespace: drupal.plugin.views_filter
13
+ - name: drupal.views_style_plugin
14
+ parent: drupal.plugin
15
+ id_namespace: drupal.plugin.views_style
@@ -0,0 +1,80 @@
1
+ $schema: "https://periplus.dev/schema/0/pack-file.schema.json"
2
+
3
+ # A views style plugin declared by the ViewsStyle attribute on its class. The id is the first argument,
4
+ # written alone or named id, and an attribute rule reads one of the two, so there is one node rule
5
+ # and one edge rule for each. An id that is not a text literal makes no plugin and is listed under
6
+ # skipped in the map report.
7
+
8
+ rules:
9
+ - rule: views_style_from_attribute
10
+ reads: file
11
+ in:
12
+ - views_style_classes
13
+ match:
14
+ attribute: Drupal\views\Attribute\ViewsStyle
15
+ filetype: php
16
+ where:
17
+ - applies_to: class_declaration
18
+ id:
19
+ from:
20
+ attribute_argument: '0'
21
+ must_be: string_literal
22
+ emits:
23
+ - node:
24
+ type: drupal.views_style_plugin
25
+ confidence: declared
26
+ - rule: views_style_from_named_attribute
27
+ reads: file
28
+ in:
29
+ - views_style_classes
30
+ match:
31
+ attribute: Drupal\views\Attribute\ViewsStyle
32
+ filetype: php
33
+ where:
34
+ - applies_to: class_declaration
35
+ id:
36
+ from:
37
+ attribute_argument: id
38
+ must_be: string_literal
39
+ emits:
40
+ - node:
41
+ type: drupal.views_style_plugin
42
+ confidence: declared
43
+ - rule: views_style_from_attribute_edges
44
+ reads: file
45
+ in:
46
+ - views_style_classes
47
+ match:
48
+ attribute: Drupal\views\Attribute\ViewsStyle
49
+ filetype: php
50
+ where:
51
+ - applies_to: class_declaration
52
+ id:
53
+ from:
54
+ attribute_argument: '0'
55
+ must_be: string_literal
56
+ emits:
57
+ - edge:
58
+ kind: plugin_class
59
+ from: this_node
60
+ to: enclosing_class
61
+ confidence: declared
62
+ - rule: views_style_from_named_attribute_edges
63
+ reads: file
64
+ in:
65
+ - views_style_classes
66
+ match:
67
+ attribute: Drupal\views\Attribute\ViewsStyle
68
+ filetype: php
69
+ where:
70
+ - applies_to: class_declaration
71
+ id:
72
+ from:
73
+ attribute_argument: id
74
+ must_be: string_literal
75
+ emits:
76
+ - edge:
77
+ kind: plugin_class
78
+ from: this_node
79
+ to: enclosing_class
80
+ confidence: declared
@@ -0,0 +1,12 @@
1
+ $schema: "https://periplus.dev/schema/0/pack-file.schema.json"
2
+
3
+ edge_kinds:
4
+ - kind: attaches_library
5
+ from: [php.class, php.function]
6
+ to: drupal.library
7
+ - kind: template_attaches_library
8
+ from: drupal.template
9
+ to: drupal.library
10
+ - kind: component_attaches_library
11
+ from: drupal.component
12
+ to: drupal.library