public function BackendName() { if (!$this->content) { return 'block'; } $block = ContentBlock::Schema()->ByContent($this->content); $result = $block->GetTagName(); if ($this->content->GetCssID()) { $result .= ' #' . $this->content->GetCssID(); } else { if ($this->content->GetCssClass()) { $result .= ' .' . $this->content->GetCssClass(); } } return $result; }
/** * Returns the adjusted block * @return block */ protected function SaveElement() { $this->block->SetTagName($this->Value('TagName')); return $this->block; }