Problem/Motivation
It would be good to deprecate the .profile file extension, but currently hook_install_tasks and hook_install_tasks_alter still only support procedural implementations.
Steps to reproduce
N/A
Proposed resolution
Create TasksInterface and require it to be in a consistent namespace Drupal\PROFILE_NAME\Install\Tasks
This will implement two methods, one for getTasks and one for alter.
We will only check for the procedural version if there is no OOP version.
Remaining tasks
Decide if Extension namespace is correct or if it should be in the install namespace.
User interface changes
N/A
Introduced terminology
TasksInterface
API changes
New TasksInterface
Data model changes
N/A
Release notes snippet
Comments
Comment #2
nicxvan commentedComment #4
nicxvan commentedComment #5
nicxvan commentedComment #6
nicxvan commentedComment #7
nicxvan commentedFailure is the random:
ManageDisplayTestThis is ready for review.
Comment #8
phenaproximaThis straightforward change makes a lot of sense to me, and support for
ContainerInjectionInterfaceis nice. RTBC if everything passes tests.Comment #9
nicxvan commentedComment #10
needs-review-queue-bot commentedThe Needs Review Queue Bot tested this issue. It fails the Drupal core commit checks. Therefore, this issue status is now "Needs work".
This does not mean that the patch necessarily needs to be re-rolled or the MR rebased. Read the Issue Summary, the issue tags and the latest discussion here to determine what needs to be done.
Consult the Drupal Contributor Guide to find step-by-step guides for working with issues.
Comment #11
nicxvan commentedFailure was just cspell, resetting status.
Comment #12
nicxvan commentedI added some suggestions to update the deprecation to 11.5 just in case we do sneak this in.
Comment #13
nicxvan commentedComment #15
catchI think this either needs to be 12.1-only or go back to 11.5, I've updated the deprecation messages to say 11.5, if we don't backport, we can have a follow-up MR to update them to 12.1
Posted some suggestions for docs as well, and applied those, one or two minor questions/comments on the MR.
Comment #16
nicxvan commentedThe changes you made all look good!
I created #3630429: [pp-1] Update TaskInterface documentation to mention key value expirable instead of state to discuss the state change.
Comment #18
catchCommitted/pushed to main, thanks!
Moving to 'to be ported' for discussion whether to backport this to 12.0 and 11.5 during beta. If we don't, we should update the deprecation version to 12.1 prior to marking fixed.