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.
- periplus/__init__.py +70 -0
- periplus/checkmap.py +80 -0
- periplus/cli.py +658 -0
- periplus/contract/schema/map.schema.json +138 -0
- periplus/contract/schema/navigation.schema.json +200 -0
- periplus/contract/schema/pack-file.schema.json +1405 -0
- periplus/contract/schema/pack-manifest.schema.json +245 -0
- periplus/contract/schema/project-settings.schema.json +85 -0
- periplus/contract/spec/engine.md +151 -0
- periplus/contract/spec/rules.md +352 -0
- periplus/detect.py +228 -0
- periplus/engine/__init__.py +5 -0
- periplus/engine/check.py +481 -0
- periplus/engine/emit.py +368 -0
- periplus/engine/packload.py +2321 -0
- periplus/engine/pattern.py +27 -0
- periplus/engine/rules.py +1946 -0
- periplus/engine/select.py +491 -0
- periplus/engine/source.py +172 -0
- periplus/engine/tree.py +424 -0
- periplus/errors.py +332 -0
- periplus/init.py +358 -0
- periplus/layout.py +28 -0
- periplus/manifest.py +498 -0
- periplus/map.py +364 -0
- periplus/navigate/__init__.py +1 -0
- periplus/navigate/find.py +143 -0
- periplus/navigate/ids.py +30 -0
- periplus/navigate/listing.py +42 -0
- periplus/navigate/mapfile.py +189 -0
- periplus/navigate/path.py +175 -0
- periplus/navigate/show.py +175 -0
- periplus/navigate/types.py +83 -0
- periplus/navigate/walk.py +138 -0
- periplus/packs/advancedqueue_basic@0.0.1/pack.yaml +14 -0
- periplus/packs/advancedqueue_basic@0.0.1/queue_job_type/queue_job_type.yaml +9 -0
- periplus/packs/advancedqueue_basic@0.0.1/queue_job_type/queue_job_type_annotation.yaml +43 -0
- periplus/packs/advancedqueue_basic@0.0.1/queue_job_type/queue_job_type_attribute.yaml +43 -0
- periplus/packs/ai_basic@0.0.1/ai_agent/ai_agent.yaml +8 -0
- periplus/packs/ai_basic@0.0.1/ai_agent/ai_agent_attribute.yaml +43 -0
- periplus/packs/ai_basic@0.0.1/ai_function_call/ai_function_call.yaml +8 -0
- periplus/packs/ai_basic@0.0.1/ai_function_call/ai_function_call_attribute.yaml +43 -0
- periplus/packs/ai_basic@0.0.1/pack.yaml +15 -0
- periplus/packs/config_pages_basic@0.0.1/bundle/config_pages_bundle_config.yaml +54 -0
- periplus/packs/config_pages_basic@0.0.1/pack.yaml +11 -0
- periplus/packs/crop_basic@0.0.1/bundle/crop_bundle_config.yaml +54 -0
- periplus/packs/crop_basic@0.0.1/pack.yaml +11 -0
- periplus/packs/drupal@0.1.0/block/block_placement.yaml +25 -0
- periplus/packs/drupal@0.1.0/block/block_placement_code.yaml +58 -0
- periplus/packs/drupal@0.1.0/block/block_placement_config.yaml +53 -0
- periplus/packs/drupal@0.1.0/block/block_plugin.yaml +52 -0
- periplus/packs/drupal@0.1.0/block/block_plugin_altered.yaml +61 -0
- periplus/packs/drupal@0.1.0/block/block_plugin_annotation.yaml +69 -0
- periplus/packs/drupal@0.1.0/block/block_plugin_attribute.yaml +56 -0
- periplus/packs/drupal@0.1.0/block/block_plugin_content.yaml +46 -0
- periplus/packs/drupal@0.1.0/block/block_plugin_derived.yaml +110 -0
- periplus/packs/drupal@0.1.0/block/block_plugin_deriver.yaml +30 -0
- periplus/packs/drupal@0.1.0/block/block_type.yaml +14 -0
- periplus/packs/drupal@0.1.0/block/block_type_code.yaml +43 -0
- periplus/packs/drupal@0.1.0/block/block_type_config.yaml +45 -0
- periplus/packs/drupal@0.1.0/cache/cache.yaml +18 -0
- periplus/packs/drupal@0.1.0/cache/cache_backend.yaml +31 -0
- periplus/packs/drupal@0.1.0/component/sdc.yaml +19 -0
- periplus/packs/drupal@0.1.0/component/sdc_definition.yaml +25 -0
- periplus/packs/drupal@0.1.0/component/sdc_use.yaml +25 -0
- periplus/packs/drupal@0.1.0/config/config_object.yaml +65 -0
- periplus/packs/drupal@0.1.0/display/display.yaml +32 -0
- periplus/packs/drupal@0.1.0/display/display_code.yaml +53 -0
- periplus/packs/drupal@0.1.0/display/display_config.yaml +95 -0
- periplus/packs/drupal@0.1.0/entity/entity.yaml +33 -0
- periplus/packs/drupal@0.1.0/entity/entity_class.yaml +60 -0
- periplus/packs/drupal@0.1.0/entity/entity_save.yaml +27 -0
- periplus/packs/drupal@0.1.0/entity/entity_type_annotation.yaml +85 -0
- periplus/packs/drupal@0.1.0/entity/entity_type_attribute.yaml +76 -0
- periplus/packs/drupal@0.1.0/field/field_instance_code.yaml +40 -0
- periplus/packs/drupal@0.1.0/field/field_instance_config.yaml +58 -0
- periplus/packs/drupal@0.1.0/field/field_storage.yaml +37 -0
- periplus/packs/drupal@0.1.0/field/field_storage_code.yaml +39 -0
- periplus/packs/drupal@0.1.0/field/field_storage_config.yaml +24 -0
- periplus/packs/drupal@0.1.0/form/form.yaml +48 -0
- periplus/packs/drupal@0.1.0/form/form_class.yaml +50 -0
- periplus/packs/drupal@0.1.0/form/form_id.yaml +48 -0
- periplus/packs/drupal@0.1.0/form/form_methods.yaml +39 -0
- periplus/packs/drupal@0.1.0/hook/hook.yaml +8 -0
- periplus/packs/drupal@0.1.0/hook/hook_attribute.yaml +28 -0
- periplus/packs/drupal@0.1.0/module/module.yaml +8 -0
- periplus/packs/drupal@0.1.0/module/module_info.yaml +50 -0
- periplus/packs/drupal@0.1.0/pack.yaml +184 -0
- periplus/packs/drupal@0.1.0/plugin/plugin.yaml +17 -0
- periplus/packs/drupal@0.1.0/plugin/plugin_annotation.yaml +120 -0
- periplus/packs/drupal@0.1.0/recommendations/recommendations.yaml +14 -0
- periplus/packs/drupal@0.1.0/service/service.yaml +19 -0
- periplus/packs/drupal@0.1.0/service/service_autowire.yaml +28 -0
- periplus/packs/drupal@0.1.0/service/service_definition.yaml +24 -0
- periplus/packs/drupal@0.1.0/service/service_use.yaml +43 -0
- periplus/packs/drupal_basic@0.3.0/action/action.yaml +9 -0
- periplus/packs/drupal_basic@0.3.0/action/action_annotation.yaml +43 -0
- periplus/packs/drupal_basic@0.3.0/action/action_attribute.yaml +43 -0
- periplus/packs/drupal_basic@0.3.0/block/block_placement.yaml +16 -0
- periplus/packs/drupal_basic@0.3.0/block/block_placement_config.yaml +51 -0
- periplus/packs/drupal_basic@0.3.0/block_plugin/block_plugin.yaml +14 -0
- periplus/packs/drupal_basic@0.3.0/block_plugin/block_plugin_annotation.yaml +47 -0
- periplus/packs/drupal_basic@0.3.0/block_plugin/block_plugin_attribute.yaml +43 -0
- periplus/packs/drupal_basic@0.3.0/block_type/block_type.yaml +8 -0
- periplus/packs/drupal_basic@0.3.0/block_type/block_type_config.yaml +54 -0
- periplus/packs/drupal_basic@0.3.0/boundary/boundary_types.yaml +19 -0
- periplus/packs/drupal_basic@0.3.0/bundle/bundle.yaml +20 -0
- periplus/packs/drupal_basic@0.3.0/bundle/bundle_config.yaml +393 -0
- periplus/packs/drupal_basic@0.3.0/call/call.yaml +349 -0
- periplus/packs/drupal_basic@0.3.0/component/component.yaml +30 -0
- periplus/packs/drupal_basic@0.3.0/config/config_object.yaml +119 -0
- periplus/packs/drupal_basic@0.3.0/constraint/constraint.yaml +8 -0
- periplus/packs/drupal_basic@0.3.0/constraint/constraint_annotation.yaml +43 -0
- periplus/packs/drupal_basic@0.3.0/constraint/constraint_attribute.yaml +43 -0
- periplus/packs/drupal_basic@0.3.0/display/display.yaml +30 -0
- periplus/packs/drupal_basic@0.3.0/display/display_config.yaml +203 -0
- periplus/packs/drupal_basic@0.3.0/display/display_mode_config.yaml +60 -0
- periplus/packs/drupal_basic@0.3.0/entity_type/config_entity_type_annotation.yaml +46 -0
- periplus/packs/drupal_basic@0.3.0/entity_type/config_entity_type_attribute.yaml +43 -0
- periplus/packs/drupal_basic@0.3.0/entity_type/content_entity_type_annotation.yaml +46 -0
- periplus/packs/drupal_basic@0.3.0/entity_type/content_entity_type_attribute.yaml +43 -0
- periplus/packs/drupal_basic@0.3.0/entity_type/entity_type.yaml +16 -0
- periplus/packs/drupal_basic@0.3.0/field/field_instance_config.yaml +116 -0
- periplus/packs/drupal_basic@0.3.0/field/field_storage.yaml +21 -0
- periplus/packs/drupal_basic@0.3.0/field/field_storage_config.yaml +45 -0
- periplus/packs/drupal_basic@0.3.0/field_formatter/field_formatter.yaml +8 -0
- periplus/packs/drupal_basic@0.3.0/field_formatter/field_formatter_annotation.yaml +46 -0
- periplus/packs/drupal_basic@0.3.0/field_formatter/field_formatter_attribute.yaml +43 -0
- periplus/packs/drupal_basic@0.3.0/field_type/field_type_annotation.yaml +46 -0
- periplus/packs/drupal_basic@0.3.0/field_type/field_type_attribute.yaml +50 -0
- periplus/packs/drupal_basic@0.3.0/field_widget/field_widget_annotation.yaml +46 -0
- periplus/packs/drupal_basic@0.3.0/field_widget/field_widget_attribute.yaml +50 -0
- periplus/packs/drupal_basic@0.3.0/form/form_id.yaml +80 -0
- periplus/packs/drupal_basic@0.3.0/hook/hook.yaml +100 -0
- periplus/packs/drupal_basic@0.3.0/hook/hook_attribute.yaml +64 -0
- periplus/packs/drupal_basic@0.3.0/hook/hook_theme_include.yaml +34 -0
- periplus/packs/drupal_basic@0.3.0/library/library.yaml +12 -0
- periplus/packs/drupal_basic@0.3.0/library/library_definition.yaml +58 -0
- periplus/packs/drupal_basic@0.3.0/local_action/local_action.yaml +12 -0
- periplus/packs/drupal_basic@0.3.0/local_action/local_action_definition.yaml +49 -0
- periplus/packs/drupal_basic@0.3.0/mail/mail.yaml +8 -0
- periplus/packs/drupal_basic@0.3.0/mail/mail_attribute.yaml +43 -0
- periplus/packs/drupal_basic@0.3.0/media_source/media_source.yaml +8 -0
- periplus/packs/drupal_basic@0.3.0/media_source/media_source_annotation.yaml +43 -0
- periplus/packs/drupal_basic@0.3.0/media_source/media_source_attribute.yaml +79 -0
- periplus/packs/drupal_basic@0.3.0/menu_link/menu_link.yaml +18 -0
- periplus/packs/drupal_basic@0.3.0/menu_link/menu_link_definition.yaml +48 -0
- periplus/packs/drupal_basic@0.3.0/module/module.yaml +7 -0
- periplus/packs/drupal_basic@0.3.0/module/module_info.yaml +58 -0
- periplus/packs/drupal_basic@0.3.0/pack.yaml +528 -0
- periplus/packs/drupal_basic@0.3.0/permission/permission.yaml +7 -0
- periplus/packs/drupal_basic@0.3.0/permission/permission_definition.yaml +27 -0
- periplus/packs/drupal_basic@0.3.0/queue_worker/queue_worker.yaml +9 -0
- periplus/packs/drupal_basic@0.3.0/queue_worker/queue_worker_annotation.yaml +43 -0
- periplus/packs/drupal_basic@0.3.0/queue_worker/queue_worker_attribute.yaml +43 -0
- periplus/packs/drupal_basic@0.3.0/rest_resource/rest_resource.yaml +8 -0
- periplus/packs/drupal_basic@0.3.0/rest_resource/rest_resource_annotation.yaml +43 -0
- periplus/packs/drupal_basic@0.3.0/rest_resource/rest_resource_attribute.yaml +43 -0
- periplus/packs/drupal_basic@0.3.0/role/role.yaml +14 -0
- periplus/packs/drupal_basic@0.3.0/role/role_config.yaml +44 -0
- periplus/packs/drupal_basic@0.3.0/route/route.yaml +42 -0
- periplus/packs/drupal_basic@0.3.0/route/route_definition.yaml +113 -0
- periplus/packs/drupal_basic@0.3.0/route/route_options.yaml +55 -0
- periplus/packs/drupal_basic@0.3.0/route/route_requirements.yaml +108 -0
- periplus/packs/drupal_basic@0.3.0/service/service.yaml +56 -0
- periplus/packs/drupal_basic@0.3.0/service/service_definition.yaml +181 -0
- periplus/packs/drupal_basic@0.3.0/template/template.yaml +86 -0
- periplus/packs/drupal_basic@0.3.0/template/template_route_link.yaml +30 -0
- periplus/packs/drupal_basic@0.3.0/theme/theme.yaml +15 -0
- periplus/packs/drupal_basic@0.3.0/theme/theme_info.yaml +61 -0
- periplus/packs/drupal_basic@0.3.0/theme_hook/template_suggestion.yaml +29 -0
- periplus/packs/drupal_basic@0.3.0/theme_hook/theme_hook.yaml +87 -0
- periplus/packs/drupal_basic@0.3.0/theme_hook/theme_hook_render.yaml +20 -0
- periplus/packs/drupal_basic@0.3.0/url/url.yaml +88 -0
- periplus/packs/drupal_basic@0.3.0/views_plugin/views_field_attribute.yaml +80 -0
- periplus/packs/drupal_basic@0.3.0/views_plugin/views_filter_attribute.yaml +80 -0
- periplus/packs/drupal_basic@0.3.0/views_plugin/views_plugin.yaml +15 -0
- periplus/packs/drupal_basic@0.3.0/views_plugin/views_style_attribute.yaml +80 -0
- periplus/packs/drupal_js_basic@0.0.1/attachment/attachment.yaml +12 -0
- periplus/packs/drupal_js_basic@0.0.1/attachment/attachment_in_php.yaml +15 -0
- periplus/packs/drupal_js_basic@0.0.1/attachment/attachment_in_php_array.yaml +52 -0
- periplus/packs/drupal_js_basic@0.0.1/attachment/attachment_in_twig.yaml +26 -0
- periplus/packs/drupal_js_basic@0.0.1/attachment/php_function_holder.yaml +13 -0
- periplus/packs/drupal_js_basic@0.0.1/behavior/behavior.yaml +198 -0
- periplus/packs/drupal_js_basic@0.0.1/pack.yaml +153 -0
- periplus/packs/drupal_js_basic@0.0.1/setting/setting.yaml +13 -0
- periplus/packs/drupal_js_basic@0.0.1/setting/setting_in_js.yaml +15 -0
- periplus/packs/drupal_js_basic@0.0.1/setting/setting_in_php.yaml +92 -0
- periplus/packs/drush_basic@0.0.1/command/command.yaml +15 -0
- periplus/packs/drush_basic@0.0.1/command/command_annotation.yaml +60 -0
- periplus/packs/drush_basic@0.0.1/command/command_attribute.yaml +88 -0
- periplus/packs/drush_basic@0.0.1/pack.yaml +29 -0
- periplus/packs/eck_basic@0.0.1/bundle/eck_bundle_config.yaml +56 -0
- periplus/packs/eck_basic@0.0.1/entity_type/eck_entity_type_config.yaml +26 -0
- periplus/packs/eck_basic@0.0.1/pack.yaml +28 -0
- periplus/packs/go@0.0.2/interfaces/satisfies.yaml +47 -0
- periplus/packs/go@0.0.2/pack.yaml +51 -0
- periplus/packs/go@0.0.2/types/find_declarations.yaml +137 -0
- periplus/packs/go@0.0.2/types/node_types.yaml +36 -0
- periplus/packs/go_basic@0.0.3/pack.yaml +104 -0
- periplus/packs/go_basic@0.0.3/rules/calls.yaml +25 -0
- periplus/packs/go_basic@0.0.3/rules/declarations.yaml +40 -0
- periplus/packs/go_basic@0.0.3/rules/imports.yaml +16 -0
- periplus/packs/go_basic@0.0.3/types/node_types.yaml +15 -0
- periplus/packs/js_basic@0.0.1/function/function.yaml +68 -0
- periplus/packs/js_basic@0.0.1/pack.yaml +50 -0
- periplus/packs/laravel_basic@0.0.5/pack.yaml +313 -0
- periplus/packs/laravel_basic@0.0.5/rules/classes.yaml +42 -0
- periplus/packs/laravel_basic@0.0.5/rules/config.yaml +229 -0
- periplus/packs/laravel_basic@0.0.5/rules/routes.yaml +210 -0
- periplus/packs/laravel_basic@0.0.5/rules/types.yaml +50 -0
- periplus/packs/laravel_basic@0.0.5/rules/views.yaml +100 -0
- periplus/packs/paragraphs_basic@0.0.1/bundle/paragraph_bundle_config.yaml +54 -0
- periplus/packs/paragraphs_basic@0.0.1/pack.yaml +12 -0
- periplus/packs/php@0.1.0/edges/edge_kinds.yaml +64 -0
- periplus/packs/php@0.1.0/edges/find_calls.yaml +34 -0
- periplus/packs/php@0.1.0/edges/find_imports.yaml +18 -0
- periplus/packs/php@0.1.0/edges/find_member_access.yaml +22 -0
- periplus/packs/php@0.1.0/edges/find_structure.yaml +38 -0
- periplus/packs/php@0.1.0/embedded/embedded_regions.yaml +19 -0
- periplus/packs/php@0.1.0/imports/imports.yaml +20 -0
- periplus/packs/php@0.1.0/pack.yaml +117 -0
- periplus/packs/php@0.1.0/resolution/excluded_tokens.yaml +23 -0
- periplus/packs/php@0.1.0/resolution/resolution.yaml +35 -0
- periplus/packs/php@0.1.0/types/find_declarations.yaml +102 -0
- periplus/packs/php@0.1.0/types/node_types.yaml +55 -0
- periplus/packs/php_basic@0.2.0/edges/edge_kinds.yaml +48 -0
- periplus/packs/php_basic@0.2.0/edges/find_structure.yaml +750 -0
- periplus/packs/php_basic@0.2.0/imports/imports.yaml +19 -0
- periplus/packs/php_basic@0.2.0/pack.yaml +94 -0
- periplus/packs/php_basic@0.2.0/types/find_declarations.yaml +267 -0
- periplus/packs/php_basic@0.2.0/types/node_types.yaml +55 -0
- periplus/packs/profile_basic@0.0.1/bundle/profile_bundle_config.yaml +54 -0
- periplus/packs/profile_basic@0.0.1/pack.yaml +12 -0
- periplus/packs/salesforce_basic@0.0.1/event/salesforce_event.yaml +36 -0
- periplus/packs/salesforce_basic@0.0.1/pack.yaml +31 -0
- periplus/packs/salesforce_basic@0.0.1/salesforce_mapping/salesforce_mapping.yaml +19 -0
- periplus/packs/salesforce_basic@0.0.1/salesforce_mapping/salesforce_mapping_config.yaml +83 -0
- periplus/packs/salesforce_basic@0.0.1/salesforce_mapping_field/salesforce_mapping_field.yaml +8 -0
- periplus/packs/salesforce_basic@0.0.1/salesforce_mapping_field/salesforce_mapping_field_annotation.yaml +43 -0
- periplus/packs/twig@0.0.1/pack.yaml +26 -0
- periplus/packs/twig@0.0.1/types/template.yaml +57 -0
- periplus/packs/twig_basic@0.1.0/pack.yaml +11 -0
- periplus/packs/twig_tweak_basic@0.0.1/pack.yaml +27 -0
- periplus/packs/twig_tweak_basic@0.0.1/rules/block.yaml +20 -0
- periplus/packs/twig_tweak_basic@0.0.1/rules/entity.yaml +35 -0
- periplus/packs/twig_tweak_basic@0.0.1/rules/field.yaml +21 -0
- periplus/packs/twig_tweak_basic@0.0.1/rules/menu.yaml +21 -0
- periplus/packs/webform_basic@0.0.1/bundle/webform_submission_bundle_config.yaml +54 -0
- periplus/packs/webform_basic@0.0.1/pack.yaml +20 -0
- periplus/packs/webform_basic@0.0.1/webform_handler/webform_handler.yaml +8 -0
- periplus/packs/webform_basic@0.0.1/webform_handler/webform_handler_annotation.yaml +43 -0
- periplus/packs/yaml@0.0.1/pack.yaml +72 -0
- periplus/packs/yaml@0.0.1/types/find_mapping_entry.yaml +21 -0
- periplus/packs/yaml@0.0.1/types/yaml_types.yaml +44 -0
- periplus/packs/yaml_basic@0.1.0/pack.yaml +10 -0
- periplus/packs.py +447 -0
- periplus/preflight.py +102 -0
- periplus/py.typed +0 -0
- periplus/report.py +596 -0
- periplus/resolution.py +355 -0
- periplus/settings.py +617 -0
- periplus/settings.stub.yml +99 -0
- periplus/spec.py +774 -0
- periplus/update.py +197 -0
- periplus/validate.py +655 -0
- periplus_map-0.2.1.dist-info/METADATA +566 -0
- periplus_map-0.2.1.dist-info/RECORD +272 -0
- periplus_map-0.2.1.dist-info/WHEEL +4 -0
- periplus_map-0.2.1.dist-info/entry_points.txt +2 -0
- periplus_map-0.2.1.dist-info/licenses/LICENSE +202 -0
- 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*=>)(?=\[(?:(?[''"]\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
|