protected function execute() { $this->state->set('plugins', $this->state->get('plugins', false)); $app = new Sp4kAppsProductApp(new Joomla\Registry\Registry($this->state->toObject())); $items = new Registry($app->getItems()); if ($this->state->get('nest', false)) { $this->items[] = (array) $this->create_tree($items->toArray()); } else { $this->items = $items->toArray(); } }