Пример #1
0
 /**
  * @return array
  */
 public function toArray()
 {
     return ['label' => $this->getLabel(), 'data_key' => $this->getDataKey()] + parent::toArray();
 }
Пример #2
0
 /**
  * {@inheritdoc}
  */
 public function toArray()
 {
     return ['can_order' => $this->canOrder()] + parent::toArray();
 }