Skip to content

feat: add whenExtensionDisabled to Conditional extender#3847

Merged
SychO9 merged 2 commits into2.xfrom
im/conditional-extender
Jul 27, 2023
Merged

feat: add whenExtensionDisabled to Conditional extender#3847
SychO9 merged 2 commits into2.xfrom
im/conditional-extender

Conversation

@imorland
Copy link
Member

Follow up to #3759

Adds whenExtensionDisabled condition to the Conditional extender. Enables developers to provide extend items when a given extension is not installed/enabled.

Usage example:

return [
    (new Extend\Conditional)
        ->whenExtensionDisabled('flarum-tags', [
                ...
        ]),
]

@imorland imorland added this to the 2.0 milestone Jun 28, 2023
@imorland imorland requested a review from a team as a code owner June 28, 2023 12:46
@SychO9 SychO9 merged commit 76004ed into 2.x Jul 27, 2023
@SychO9 SychO9 deleted the im/conditional-extender branch July 27, 2023 10:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants