public function SimpleMegaMenuStorage::clearRevisionsLanguage in Simple Mega Menu 8
Same name and namespace in other branches
- 2.0.x src/SimpleMegaMenuStorage.php \Drupal\simple_megamenu\SimpleMegaMenuStorage::clearRevisionsLanguage()
Unsets the language for all Simple mega menu with the given language.
Parameters
\Drupal\Core\Language\LanguageInterface $language: The language object.
Overrides SimpleMegaMenuStorageInterface::clearRevisionsLanguage
File
- src/
SimpleMegaMenuStorage.php, line 51
Class
- SimpleMegaMenuStorage
- Defines the storage handler class for Simple mega menu entities.
Namespace
Drupal\simple_megamenuCode
public function clearRevisionsLanguage(LanguageInterface $language) {
return $this->database
->update('simple_mega_menu_revision')
->fields([
'langcode' => LanguageInterface::LANGCODE_NOT_SPECIFIED,
])
->condition('langcode', $language
->getId())
->execute();
}