getActionId()); } public function getActionId() { return Action::TYPE_CONTENT_NAME; } public function onLookupAction(Request $request, Action $action) { if (!($action instanceof ActionContent)) { return false; } $contentName = $request->getParam('c_n'); $contentName = trim($contentName); if (strlen($contentName) > 0) { return $contentName; } throw new InvalidRequestParameterException('Param `c_n` must not be empty or filled with whitespaces'); } }