Closed AlexSkrypnyk closed 2 months ago
public function menuLinksDelete(string $menu_name, TableNode $table): void { foreach ($table->getColumn(0) as $title) { try { $menu_link = $this->loadMenuLinkByTitle($title, $menu_name); if ($menu_link) { $menu_link->delete(); } } catch (\Exception) { continue; } } }