You are here

public function Notify::supportedOps in Backup and Migrate 5.0.x

Add a weight so that our before* operations run before any others.

Primarily to ensure this one runs before other plugins have a chance to write any log entries.

Return value

array

Overrides PluginBase::supportedOps

File

src/Core/Filter/Notify.php, line 27

Class

Notify
Notifies by email when a backup succeeds or fails.

Namespace

Drupal\backup_migrate\Core\Filter

Code

public function supportedOps() {
  return [
    'beforeBackup' => [
      'weight' => -100000,
    ],
    'beforeRestore' => [
      'weight' => -100000,
    ],
  ];
}