public function moduleForAction($action)
    {
        if (!isset($this->actions[$action])) {
            return null;
        }

        return $this->modules[$this->actions[$action]];
    }
public function moduleForAction($action)
    {
        if (!isset($this->actions[$action])) {
            return null;
        }

        return $this->modules[$this->actions[$action]];
    }
public function moduleForAction ( $ action ) { if ( ! isset ( $ this -> actions [ $ action ] ) ) { return null ; } return $ this -> modules [ $ this -> actions [ $ action ] ] ; }
Get the module for an action.

@param string $action
@return \Codeception\Module|null This method returns null if there is no module for $action
Get the module for an action .