public function PluginManager::getAllByOp in Backup and Migrate 5.0.x
Get all plugins that implement the given operation.
Parameters
string $op: The name of the operation.
Return value
\Drupal\backup_migrate\Core\Plugin\PluginInterface[]
Overrides PluginManagerInterface::getAllByOp
2 calls to PluginManager::getAllByOp()
- PluginManager::call in src/
Core/ Plugin/ PluginManager.php - Call all plugins which support the given operation.
- PluginManager::map in src/
Core/ Plugin/ PluginManager.php - Call all plugins which support the given operation.
File
- src/
Core/ Plugin/ PluginManager.php, line 95
Class
- PluginManager
- @package Drupal\backup_migrate\Core\Plugin
Namespace
Drupal\backup_migrate\Core\PluginCode
public function getAllByOp($op) {
$out = [];
$weights = [];
foreach ($this
->getAll() as $key => $plugin) {
if ($plugin
->supportsOp($op)) {
$out[$key] = $plugin;
$weights[$key] = $plugin
->opWeight($op);
}
}
array_multisort($weights, $out);
return $out;
}