/** * Get pages sections * * @return array */ public function getPages() { $list = parent::getPages(); $list['category_modify'] = $this->getCategory()->isPersistent() ? 'Modify category' : 'Add new category'; return $list; }
/** * Get pages sections * * @return array */ public function getPages() { $list = parent::getPages(); $list['info'] = 'Product info'; if (!$this->isNew()) { $list['images'] = 'Product images'; $list['inventory'] = 'Inventory tracking'; } return $list; }