Ejemplo n.º 1
0
 /**
  * Delete Block
  *
  * @param Data\BlockInterface $block
  * @return bool
  * @throws CouldNotDeleteException
  */
 public function delete(Data\BlockInterface $block)
 {
     try {
         $this->resource->delete($block);
     } catch (\Exception $exception) {
         throw new CouldNotDeleteException(__($exception->getMessage()));
     }
     return true;
 }