eZ\Publish\Core\Persistence\Legacy\Content\Language\Gateway\ExceptionConversion::deleteLanguage PHP Method

deleteLanguage() public method

Deletes the language with $id.
public deleteLanguage ( integer $id )
$id integer
    public function deleteLanguage($id)
    {
        try {
            return $this->innerGateway->deleteLanguage($id);
        } catch (DBALException $e) {
            throw new RuntimeException('Database error', 0, $e);
        } catch (PDOException $e) {
            throw new RuntimeException('Database error', 0, $e);
        }
    }