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