Example #1
0
 /** @inheritdoc */
 public function init()
 {
     parent::init();
     if ($this->item instanceof Page) {
         $this->id = $this->item->id;
         $this->setAttributes($this->item->getAttributes());
         $this->setIsNewRecord($this->item->getIsNewRecord());
     }
 }