You are here

public function PluginCallerTrait::plugins in Backup and Migrate 8.4

Get the plugin manager.

Return value

\BackupMigrate\Core\Plugin\PluginManagerInterface

File

lib/backup_migrate_core/src/Plugin/PluginCallerTrait.php, line 35

Class

PluginCallerTrait
Class PluginCallerTrait.

Namespace

BackupMigrate\Core\Plugin

Code

public function plugins() {

  // Return the list of plugins or a blank placeholder.
  return $this->plugins ? $this->plugins : new PluginManager();
}