original_string: public function viewMode($slug = null)
      {
          if ($slug === null) {
              return ViewModeRegistry::current();
          }
  
          return ViewModeRegistry::uses($slug);
      }
code: public function viewMode($slug = null)
      {
          if ($slug === null) {
              return ViewModeRegistry::current();
          }
  
          return ViewModeRegistry::uses($slug);
      }
code_tokens: public function viewMode ( $ slug = null ) { if ( $ slug === null ) { return ViewModeRegistry :: current ( ) ; } return ViewModeRegistry :: uses ( $ slug ) ; }
docstring: Sets a view mode or get current view mode.
  
  @param string|null $slug Slug name of the view mode
  @return void
  @see \CMS\View\ViewModeRegistry::uses()
docstring_tokens: Sets a view mode or get current view mode .