public function PluginManager::add in Backup and Migrate 8.4
Add an item to the manager.
Parameters
$id:
\BackupMigrate\Core\Plugin\PluginInterface|object $item: The source to add.
Overrides PluginManagerInterface::add
File
- lib/
backup_migrate_core/ src/ Plugin/ PluginManager.php, line 69
Class
- PluginManager
- Class PluginManager.
Namespace
BackupMigrate\Core\PluginCode
public function add($id, PluginInterface $item) {
$this
->_preparePlugin($item, $id);
$this->items[$id] = $item;
}