\Drupal\page_manager\Entity\Page::removeVariant() currently only deletes the variant config entity, but should also remove that particular variant from the list of variants stored on the page.
eg:
<?php
unset($this->variants[$variant_id]);
?>| Comment | File | Size | Author |
|---|---|---|---|
| #2 | page_manager-removevariant_should-2692347-2.patch | 390 bytes | yanniboi |
Comments
Comment #2
yanniboi commentedComment #3
andrewbelcher commentedMarking this as a duplicate of #2692397: Adding/removing variants leaves Page::$variants out of date which I'll merge it into.
Comment #4
andrewbelcher commentedRemoving tag/parent to remove noise.