/** * Gets the full list of all registered view modes, or for a single view mode * if $viewMode is set to a string value. * * @param bool|string $viewMode Set to true to get full list. Or false (by default) to * get only the slug of all registered view modes. Or set to a string value to * get information for that view mode only. * @return array * @see \CMS\View\ViewModeRegistry::modes() */ public function viewModes($viewMode = false) { return ViewModeRegistry::modes($viewMode); }