Пример #1
0
 /**
  * Save Block data
  *
  * @param Data\BlockInterface $block
  * @return Block
  * @throws CouldNotSaveException
  */
 public function save(Data\BlockInterface $block)
 {
     try {
         $this->resource->save($block);
     } catch (\Exception $exception) {
         throw new CouldNotSaveException(__($exception->getMessage()));
     }
     return $block;
 }