You are here

public function PluginBase::opWeight in Backup and Migrate 5.0.x

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

Parameters

string $op: The name of the operation.

Return value

int

Overrides PluginInterface::opWeight

File

src/Core/Plugin/PluginBase.php, line 58

Class

PluginBase
@package Drupal\backup_migrate\Core\Plugin

Namespace

Drupal\backup_migrate\Core\Plugin

Code

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