Create getters and setters for dynamic Extension properties

Created on 27 June 2022, almost 2 years ago
Updated 30 April 2024, about 2 months ago

Problem/Motivation

The following are dynamic properties on \Drupal\Core\Extension\Extension

  • base_theme
  • base_themes
  • engine
  • filename
  • incompatible_base
  • incompatible_engine
  • incompatible_module
  • incompatible_php
  • incompatible_region
  • info
  • insufficient_module_permissions
  • is_admin
  • is_default
  • libraries
  • module_dependencies
  • module_dependencies_disabled
  • module_dependencies_list
  • notes
  • operations
  • origin
  • owner
  • pathname
  • prefix
  • required
  • requiredBy
  • requires
  • root
  • schema_version
  • screenshot
  • sort
  • status
  • sub_themes
  • subpath
  • type
  • weight

(see \Drupal\Core\Extension\ModuleHandler::buildModuleDependencies() for example)

Let's add specific getters and setters on the Extension class for better discoverability and documentation.

Steps to reproduce

Proposed resolution

Add getters and setters for missing properties to the Extension class except for Info which is much more complicated.

Remaining tasks

User interface changes

n.a.

API changes

New methods on extension class.

Data model changes

Release notes snippet

πŸ“Œ Task
Status

Needs work

Version

11.0 πŸ”₯

Component
ExtensionΒ  β†’

Last updated about 1 hour ago

No maintainer
Created by

πŸ‡¦πŸ‡ΊAustralia kim.pepper πŸ„β€β™‚οΈπŸ‡¦πŸ‡ΊSydney, Australia

Live updates comments and jobs are added and updated live.
  • PHP 8.2

    The issue particularly affects sites running on PHP version 8.2.0 or later.

Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.69.0 2024