main/core/Entity/Widget/WidgetContainer.php
public function removeInstance(WidgetInstance $instance)
    {
        if ($this->instances->contains($instance)) {
            $this->instances->removeElement($instance);
        }
    }
public function removeInstance(WidgetInstance $instance)
    {
        if ($this->instances->contains($instance)) {
            $this->instances->removeElement($instance);
        }
    }
public function removeInstance ( WidgetInstance $ instance ) { if ( $ this -> instances -> contains ( $ instance ) ) { $ this -> instances -> removeElement ( $ instance ) ; } }
Remove a WidgetInstance from the container.

@param WidgetInstance $instance
Remove a WidgetInstance from the container .