Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

remove instruction 'remove_blocks' in favor of 'remove' property #10

Closed
hummer2k opened this issue Oct 9, 2015 · 0 comments
Closed
Assignees
Milestone

Comments

@hummer2k
Copy link
Owner

hummer2k commented Oct 9, 2015

Currently we can remove blocks via the instruction 'remove_blocks'

A nicer solution would be to remove blocks via a property or key inside the block definition itself:

return [
    'blocks' => [
        'some.block' => [
            'remove' => true
        ]
    ]
];

or xml

<layout>
    <blocks>
        <some.block remove="1" />
    </blocks>
</layout>
@hummer2k hummer2k added this to the v3.0.0 milestone Oct 9, 2015
@hummer2k hummer2k self-assigned this Oct 9, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant