/**
* Delete a language.
*
* @param mixed $id
*
* @throws LogicException If language could not be deleted
*/
public function delete($id)
{
if (!$this->languageGateway->canDeleteLanguage($id)) {
throw new LogicException("Deleting language logic error, some content still references that language and therefore it can't be deleted");
}
$this->languageGateway->deleteLanguage($id);
}