You are here

public function LogStorage::clearRevisionsLanguage in Log entity 8

Unsets the language for all logs with the given language.

Parameters

\Drupal\Core\Language\LanguageInterface $language: The language object.

Overrides LogStorageInterface::clearRevisionsLanguage

File

src/LogStorage.php, line 62
Contains \Drupal\log\LogStorage.

Class

LogStorage
Defines the controller class for logs.

Namespace

Drupal\log

Code

public function clearRevisionsLanguage(LanguageInterface $language) {
  return $this->database
    ->update('log_revision')
    ->fields(array(
    'langcode' => LanguageInterface::LANGCODE_NOT_SPECIFIED,
  ))
    ->condition('langcode', $language
    ->getId())
    ->execute();
}