Problem/Motivation

if ($extension === 'module' && !$iterator->getDepth()) {
should be
if (($extension === 'module' || $extension === 'profile') && !$iterator->getDepth()) {

Steps to reproduce

Create OOP hook in a profile.

Proposed resolution

Make code change

Remaining tasks

MR

User interface changes

N/A

Introduced terminology

N/A

API changes

N/A

Data model changes

N/A

Release notes snippet

N/A

Issue fork drupal-3490298

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

nicxvan created an issue. See original summary.

nicxvan’s picture

Issue summary: View changes
nicxvan’s picture

Issue summary: View changes

nicxvan’s picture

Status: Active » Needs review
nicxvan’s picture

Issue tags: +beta target
andypost’s picture

Status: Needs review » Reviewed & tested by the community

Looks good to go!

nicxvan’s picture

I rebased and moved the profile to profiles/tests since #3490493: Test profiles should be in a tests directory that is where they belong.

nicxvan’s picture

Priority: Normal » Major

  • catch committed 787dcbc2 on 11.1.x
    Issue #3490298 by nicxvan: Profiles can be missed in OOP hooks
    
    (cherry...

  • catch committed 6cc34e19 on 11.x
    Issue #3490298 by nicxvan: Profiles can be missed in OOP hooks
    
catch’s picture

Version: 11.x-dev » 11.1.x-dev
Status: Reviewed & tested by the community » Fixed

Committed/pushed to 11.x and cherry-picked to 11.1.x, thanks!

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.