/** * Get all modules as collection instance. * * @return \YCMS\Modules\Collection * @static */ public static function toCollection() { return \YCMS\Modules\Repository::toCollection(); }