/** * Delete blocks by their associated id * * @param array $ids * @return boolean */ public function deleteByIds(array $ids) { foreach ($ids as $id) { if (!$this->blockMapper->deleteById($id)) { return false; } } $this->track('Batch removal of %s blocks', count($ids)); return true; }
/** * Renders a block * * @param string $class Block's class name * @return string */ public function render($class) { return $this->blockMapper->fetchContentByClass($class); }