You are here

public function LogStorageInterface::updateType in Log entity 8

Updates all logs of one type to be of another type.

Parameters

string $old_type: The current log type of the logs.

string $new_type: The new log type of the logs.

Return value

int The number of logs whose log type field was modified.

1 method overrides LogStorageInterface::updateType()
LogStorage::updateType in src/LogStorage.php
Updates all logs of one type to be of another type.

File

src/LogStorageInterface.php, line 63
Contains \Drupal\log\LogStorageInterface.

Class

LogStorageInterface
Defines an interface for log entity storage classes.

Namespace

Drupal\log

Code

public function updateType($old_type, $new_type);