Exemple #1
0
 /**
  * Get pages sections
  *
  * @return array
  */
 public function getPages()
 {
     $list = parent::getPages();
     $list['category_modify'] = $this->getCategory()->isPersistent() ? 'Modify category' : 'Add new category';
     return $list;
 }
Exemple #2
0
 /**
  * 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;
 }