public function EventStorage::clearRevisionsLanguage in Event 8
Unsets the language for all Event with the given language.
Parameters
\Drupal\Core\Language\LanguageInterface $language: The language object.
Overrides EventStorageInterface::clearRevisionsLanguage
File
- src/
EventStorage.php, line 51
Class
- EventStorage
- Defines the storage handler class for Event entities.
Namespace
Drupal\eventCode
public function clearRevisionsLanguage(LanguageInterface $language) {
return $this->database
->update('event_revision')
->fields([
'langcode' => LanguageInterface::LANGCODE_NOT_SPECIFIED,
])
->condition('langcode', $language
->getId())
->execute();
}