Back to RouterView class

Method registerView

public void
registerView
(\Joomla\CMS\Component\Router\RouterViewConfiguration $view)
Register the views of a component
Parameters
  • \Joomla\CMS\Component\Router\RouterViewConfiguration $view View configuration object
Returns
  • void
Since
  • 3.5
Class: RouterView
Project: Joomla

Method registerView - Source code

/**
 * Register the views of a component
 *
 * @param   RouterViewConfiguration  $view  View configuration object
 *
 * @return  void
 *
 * @since   3.5
 */
public function registerView(RouterViewConfiguration $view)
{
    $this->views[$view->name] = $view;
}