/** * Deletes a block by its associated id * * @param string $id * @return boolean */ public function deleteById($id) { // Grab block's name before we fetch it $name = Filter::escape($this->blockMapper->fetchNameById($id)); if ($this->blockMapper->deleteById($id)) { $this->track('Removed "%s" block', $name); return true; } else { return false; } }