/**
  * Converts the BlockManager object into an array
  *
  * Adds some internal options to describe how to properly render the block
  *
  * @return array
  *
  * @api
  */
 public function toArray()
 {
     if (null === $this->alBlock) {
         return array();
     }
     $content = $this->replaceHtmlCmsActive();
     if (null === $content) {
         $content = $this->getHtml();
     }
     $blockManager = array();
     $blockManager["HideInEditMode"] = $this->getHideInEditMode();
     $blockManager["Content"] = $content;
     $blockManager["EditInline"] = $this->editInline();
     $blockManager["Block"] = $this->alBlock->toArray();
     return $blockManager;
 }
 protected function updateSlotName(Block $block, $blockSlotName)
 {
     $block->setSlotName($blockSlotName);
     return $block->save();
 }