public function matchesAction($action) { $action = (array) $action; return $this->action === 'manage' || in_array($this->action, $action); }