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