public function hide() { // keep the old state of the page object $old = clone $this; // don't hide pages, which are not allowed to change their status if (!$this->canChangeStatus()) { return false; } parent::hide(); $this->sorter()->hide(); kirby()->trigger('panel.page.hide', array($this, $old)); }
public function hide() { parent::hide(); $this->sorter()->hide(); kirby()->trigger('panel.page.hide', $this); }
public function hide() { // don't hide pages, which are not allowed to change their status if (!$this->canChangeStatus()) { return false; } parent::hide(); $this->sorter()->hide(); kirby()->trigger('panel.page.hide', $this); }