interface ServiceInterface in Purge 8.3
Describes a generic service for all DIC-registered service classes by Purge.
Hierarchy
- interface \Drupal\Core\DependencyInjection\ServiceProviderInterface; interface \Drupal\Core\DependencyInjection\ServiceModifierInterface
- interface \Drupal\purge\ServiceInterface
Expanded class hierarchy of ServiceInterface
All classes that implement ServiceInterface
8 files declare their use of ServiceInterface
- DiagnosticsServiceInterface.php in src/
Plugin/ Purge/ DiagnosticCheck/ DiagnosticsServiceInterface.php - InvalidationsServiceInterface.php in src/
Plugin/ Purge/ Invalidation/ InvalidationsServiceInterface.php - ProcessorsServiceInterface.php in src/
Plugin/ Purge/ Processor/ ProcessorsServiceInterface.php - PurgersServiceInterface.php in src/
Plugin/ Purge/ Purger/ PurgersServiceInterface.php - QueuersServiceInterface.php in src/
Plugin/ Purge/ Queuer/ QueuersServiceInterface.php
File
- src/
ServiceInterface.php, line 11
Namespace
Drupal\purgeView source
interface ServiceInterface extends ServiceProviderInterface, ServiceModifierInterface {
/**
* Retrieve a list of all available plugins providing the service.
*
* @return array[]
* Associative array with plugin definitions and the plugin_id in each key.
*
* @see \Drupal\Component\Plugin\PluginManagerInterface::getDefinitions()
*/
public function getPlugins();
/**
* Retrieve the configured plugin_ids that the service will use.
*
* @return string[]
* Array with the plugin_ids of the enabled plugins.
*/
public function getPluginsEnabled();
/**
* Find out whether the given plugin_id is enabled.
*
* @param string $plugin_id
* The plugin_id of the plugin you want to check for.
*
* @return bool
* Whether the plugin is enabled.
*/
public function isPluginEnabled($plugin_id);
/**
* Reload the service and reinstantiate all enabled plugins.
*
* @warning
* Reloading a service implies that all cached data will be reset and that
* plugins get reinstantiated during the current request, which should
* normally not be used. This method is specifically used in tests.
*/
public function reload();
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
ServiceInterface:: |
public | function | Retrieve a list of all available plugins providing the service. | 1 |
ServiceInterface:: |
public | function | Retrieve the configured plugin_ids that the service will use. | 1 |
ServiceInterface:: |
public | function | Find out whether the given plugin_id is enabled. | 1 |
ServiceInterface:: |
public | function | Reload the service and reinstantiate all enabled plugins. | 1 |
ServiceModifierInterface:: |
public | function | Modifies existing service definitions. | 13 |
ServiceProviderInterface:: |
public | function | Registers services to the container. | 14 |