Quantcast
Channel: Issues for Drupal core
Viewing all articles
Browse latest Browse all 295813

Create hook_runtime_requirements

$
0
0

Problem/Motivation

Hook requirements uses phase right now to manage whether it is runtime, install, or update.

This leads to significant complexity. As it stands hook_runtime can easily be an OOP hook.

Let's create a new hook_runtime_requirements so we can start moving those.

Steps to reproduce

N/A

Proposed resolution

Open question, do we merge the results from hook_requirements(runtime) and runtime_requirements, then alter runtime after?
Create hook_runtime_requirements

Remaining tasks

Create hook_runtime_requirements
Create hook_runtime_requirements_alter

Invoke hook_runtime_requirements after hook_requirements
Merge results
Run hook_requirements_alter
Run hook_runtime_requirements_alter

User interface changes

N/A

Introduced terminology

hook_runtime_requirements
hook_runtime_requirements_alter

API changes

Runtime requirements can be implemented to provide info on status report

Data model changes

Release notes snippet


Viewing all articles
Browse latest Browse all 295813

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>