/**
* Prepare view data
*
* @return void
*/
protected function initializeView()
{
$componentName = substr($this->option, 4);
$helperClass = ucfirst($componentName . 'Helper');
// Include the component helpers.
\JLoader::register($helperClass, JPATH_COMPONENT . '/helpers/' . $componentName . '.php');
if ($this->getLayout() !== 'modal') {
if (\is_callable($helperClass . '::addSubmenu')) {
\call_user_func(array($helperClass, 'addSubmenu'), $this->getName());
}
$this->sidebar = \JHtmlSidebar::render();
}
$this->items = $this->get('Items');
$this->pagination = $this->get('Pagination');
$this->state = $this->get('State');
$this->filterForm = $this->get('FilterForm');
$this->activeFilters = $this->get('ActiveFilters');
}