protected function baseViewModel (ViewModelInterface $viewModel)
  {
    $props = $this->props ? $this->props->getAll () : null;
    if ($props)
      $viewModel['props'] = $props;
  }
protected function baseViewModel (ViewModelInterface $viewModel)
  {
    $props = $this->props ? $this->props->getAll () : null;
    if ($props)
      $viewModel['props'] = $props;
  }
protected function baseViewModel ( ViewModelInterface $ viewModel ) { $ props = $ this -> props ? $ this -> props -> getAll ( ) : null ; if ( $ props ) $ viewModel [ 'props' ] = $ props ; }
Override to set data on the component's view model that will be set for component subclasses.

><p>Don't forget to call `parent::baseViewModel` if you override this method.

@param ViewModelInterface $viewModel The view model where data can be stored for later access by the view renderer.
Override to set data on the component s view model that will be set for component subclasses .