protected function _update_route(\blitze\sitemaker\model\blocks\entity\route $entity, array $route_prefs) { $entity->set_hide_blocks($route_prefs['hide_blocks']); $entity->set_ex_positions($route_prefs['ex_positions']); $this->route_mapper->save($entity); }
protected function _route_has_blocks(\blitze\sitemaker\model\blocks\entity\route $entity) { return $entity && sizeof($entity->get_blocks()) ? true : false; }