public function doListSelected() { $this->onItemsReady(function ($e) { $e['controller']->setParam('extra_root_ids', $e['items']->getValues('id')); }); $this->onItemsReady(array($this, 'addSubmenuItems')); return parent::doListSelected(); }