-
Notifications
You must be signed in to change notification settings - Fork 9.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ENGCOM-1062: [Backport] Can't cancel removal of a block or container …
…in layout by setting remove attribute value to false #14198
- Loading branch information
Showing
6 changed files
with
57 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
21 changes: 21 additions & 0 deletions
21
...on/testsuite/Magento/Framework/View/_files/layout_directives_test/remove_cancellation.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
<?xml version="1.0"?> | ||
<!-- | ||
/** | ||
* Copyright © Magento, Inc. All rights reserved. | ||
* See COPYING.txt for license details. | ||
*/ | ||
--> | ||
<layout> | ||
<container name="container1" label="Container 1"> | ||
<block class="Magento\Framework\View\Element\Text" name="no_name2"/> | ||
</container> | ||
<referenceContainer name="container1" remove="true"/> | ||
<referenceBlock name="child_block1" remove="true"/> | ||
<block class="Magento\Framework\View\Element\Text" name="block_container" as="block.container"> | ||
<block class="Magento\Framework\View\Element\Text" name="child_block1"/> | ||
<block class="Magento\Framework\View\Element\Text" name="child_block2"/> | ||
</block> | ||
<referenceContainer name="not_exist" remove="false"/> | ||
<referenceContainer name="container1" remove="false"/> | ||
<referenceBlock name="child_block1" remove="false"/> | ||
</layout> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters