private function getRecordActions() { return array_filter($this->actions, function($item) { return in_array($item, array('show', 'edit')); }); }