Rename module site_structure → structural_pages and vocabulary site_section → site_sections

Renames the module from site_structure to structural_pages and pluralizes
the taxonomy vocabulary machine name from site_section to site_sections,
updating all config, PHP, translations, and documentation references
while preserving field_site_section, clears_site_section, and $site_section_id.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
2026-02-05 08:10:32 -03:00
parent 7c898ad339
commit 88b9605408
37 changed files with 545 additions and 281 deletions

View File

@@ -5,7 +5,7 @@ dependencies:
- field.storage.node.field_parent_page
- node.type.content_page
- node.type.section_page
- taxonomy.vocabulary.site_section
- taxonomy.vocabulary.site_sections
module:
- dynamic_entity_reference
id: node.content_page.field_parent_page
@@ -36,7 +36,7 @@ settings:
handler: 'default:taxonomy_term'
handler_settings:
target_bundles:
site_section: site_section
site_sections: site_sections
sort:
field: name
direction: asc

View File

@@ -4,7 +4,7 @@ dependencies:
config:
- field.storage.node.field_site_section
- node.type.content_page
- taxonomy.vocabulary.site_section
- taxonomy.vocabulary.site_sections
module:
- taxonomy
id: node.content_page.field_site_section
@@ -21,7 +21,7 @@ settings:
handler: 'default:taxonomy_term'
handler_settings:
target_bundles:
site_section: site_section
site_sections: site_sections
sort:
field: name
direction: asc

View File

@@ -4,7 +4,7 @@ dependencies:
config:
- field.storage.node.field_site_section
- node.type.section_page
- taxonomy.vocabulary.site_section
- taxonomy.vocabulary.site_sections
module:
- taxonomy
id: node.section_page.field_site_section
@@ -21,7 +21,7 @@ settings:
handler: 'default:taxonomy_term'
handler_settings:
target_bundles:
site_section: site_section
site_sections: site_sections
sort:
field: name
direction: asc

View File

@@ -3,7 +3,7 @@ status: true
dependencies:
module:
- node
- site_structure
- structural_pages
id: content_page
label: 'Content Page'
type: 'canonical_entities:node'

View File

@@ -3,7 +3,7 @@ status: true
dependencies:
module:
- node
- site_structure
- structural_pages
id: section_page
label: 'Section Page'
type: 'canonical_entities:node'

View File

@@ -2,10 +2,10 @@ langcode: en
status: true
dependencies:
module:
- site_structure
- structural_pages
- taxonomy
id: site_section_term
label: 'Site Section Term'
id: site_sections_term
label: 'Site Sections Term'
type: 'canonical_entities:taxonomy_term'
pattern: '[term:hierarchy-path]'
selection_logic: and
@@ -16,5 +16,5 @@ selection_criteria:
context_mapping:
taxonomy_term: taxonomy_term
bundles:
site_section: site_section
site_sections: site_sections
weight: 0

View File

@@ -4,7 +4,7 @@ allowed_parent_targets:
- entity_type: node
bundle: section_page
- entity_type: taxonomy_term
bundle: site_section
bundle: site_sections
- entity_type: user
bundle: user
- entity_type: group

View File

@@ -1,7 +1,7 @@
langcode: en
status: true
dependencies: { }
name: 'Site Section'
vid: site_section
name: 'Site Sections'
vid: site_sections
description: 'Main hierarchical structure for site organization.'
weight: 0

View File

@@ -240,7 +240,7 @@ display:
display_options:
display_extenders: { }
block_description: 'Child Pages'
block_category: 'Site Structure'
block_category: 'Structural Pages'
cache_metadata:
max-age: -1
contexts:

View File

@@ -1,6 +1,6 @@
site_structure.settings:
structural_pages.settings:
type: config_object
label: 'Site Structure settings'
label: 'Structural Pages settings'
mapping:
allowed_parent_targets:
type: sequence