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