public function PluginManager::add in Backup and Migrate 5.0.x
Add an item to the manager.
Parameters
$id:
\Drupal\backup_migrate\Core\Plugin\PluginInterface|object $item: The source to add.
Overrides PluginManagerInterface::add
File
- src/
Core/ Plugin/ PluginManager.php, line 68
Class
- PluginManager
- @package Drupal\backup_migrate\Core\Plugin
Namespace
Drupal\backup_migrate\Core\PluginCode
public function add($id, PluginInterface $item) {
$this
->preparePlugin($item, $id);
$this->items[$id] = $item;
}