You are here

PluginCallerInterface.php in Backup and Migrate 8.4

File

lib/backup_migrate_core/src/Plugin/PluginCallerInterface.php
View source
<?php

namespace BackupMigrate\Core\Plugin;

use BackupMigrate\Core\Plugin\PluginManagerInterface;

/**
 * Interface PluginCallerPluginInterface.
 *
 * @package BackupMigrate\Core\Plugin
 *
 * An interface for plugins which need to access other plugins and therefore
 * must have access to a plugin manager.
 */
interface PluginCallerInterface {

  /**
   * Inject the plugin manager.
   *
   * @param \BackupMigrate\Core\Plugin\PluginManagerInterface $plugins
   */
  public function setPluginManager(PluginManagerInterface $plugins);

  /**
   * Get the plugin manager.
   *    * @return \BackupMigrate\Core\Plugin\PluginManagerInterface.
   */
  public function plugins();

}

Interfaces

Namesort descending Description
PluginCallerInterface Interface PluginCallerPluginInterface.