public function deleteCustomLayoutAction() { $customLayout = Object\ClassDefinition\CustomLayout::getById(intval($this->getParam("id"))); if ($customLayout) { $customLayout->delete(); } $this->_helper->json(["success" => true]); }