public function getModules($hook = null)
    {
        if (isset($hook) && in_array($hook, array_keys($this->modules))) {
            return $this->modules[$hook];
        }

        return $this->modules;
    }
public function getModules($hook = null)
    {
        if (isset($hook) && in_array($hook, array_keys($this->modules))) {
            return $this->modules[$hook];
        }

        return $this->modules;
    }
public function getModules ( $ hook = null ) { if ( isset ( $ hook ) && in_array ( $ hook , array_keys ( $ this -> modules ) ) ) { return $ this -> modules [ $ hook ] ; } return $ this -> modules ; }
Return the list of registered modules.
@param string $hook
@return array
Return the list of registered modules .