557
557
// Remove our display from any groups it is assigned to
558
558
foreach ($this->displayGroups as $displayGroup) {
559
559
/* @var DisplayGroup $displayGroup */
560
$displayGroup->setChildObjectDependencies($this->displayFactory, $this->layoutFactory, $this->mediaFactory, $this->scheduleFactory);
560
561
$displayGroup->unassignDisplay($this);
561
562
$displayGroup->save(['validate' => false]);
564
565
// Delete our display specific group
565
566
$displayGroup = $this->displayGroupFactory->getById($this->displayGroupId);
567
$displayGroup->setChildObjectDependencies($this->displayFactory, $this->layoutFactory, $this->mediaFactory, $this->scheduleFactory);