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

updateLanguage() public method

Updates the data of the given $language.
public updateLanguage ( eZ\Publish\SPI\Persistence\Content\Language $language )
$language eZ\Publish\SPI\Persistence\Content\Language
    public function updateLanguage(Language $language)
    {
        try {
            return $this->innerGateway->updateLanguage($language);
        } catch (DBALException $e) {
            throw new RuntimeException('Database error', 0, $e);
        } catch (PDOException $e) {
            throw new RuntimeException('Database error', 0, $e);
        }
    }