You are here

public function PluginBase::opWeight in Backup and Migrate 8.4

What is the weight of the given operation for this plugin.

Parameters

$op string The name of the operation.:

Return value

int

Overrides PluginInterface::opWeight

File

lib/backup_migrate_core/src/Plugin/PluginBase.php, line 55

Class

PluginBase
Class PluginOperationTrait.

Namespace

BackupMigrate\Core\Plugin

Code

public function opWeight($op) {
  $ops = $this
    ->supportedOps();
  if (isset($ops[$op]['weight'])) {
    return $ops[$op]['weight'];
  }
  return 0;
}