interface LoggerChannelPartFactoryInterface in Purge 8.3
Describes a factory that creates LoggerChannelPartInterface instances.
Hierarchy
- interface \Drupal\Core\DependencyInjection\ServiceProviderInterface; interface \Drupal\Core\DependencyInjection\ServiceModifierInterface
- interface \Drupal\purge\Logger\LoggerChannelPartFactoryInterface
Expanded class hierarchy of LoggerChannelPartFactoryInterface
All classes that implement LoggerChannelPartFactoryInterface
File
- src/
Logger/ LoggerChannelPartFactoryInterface.php, line 11
Namespace
Drupal\purge\LoggerView source
interface LoggerChannelPartFactoryInterface extends ServiceProviderInterface, ServiceModifierInterface {
/**
* Create a channel part instance.
*
* @param string $id
* The identifier of the channel part.
* @param int[] $grants
* Unassociative array of RFC 5424 log types. Each passed type grants the
* channel permission to log that type of message, without specific
* permissions the logger will stay silent for that type.
*
* Grants available:
* - \Drupal\Core\Logger\RfcLogLevel::EMERGENCY
* - \Drupal\Core\Logger\RfcLogLevel::ALERT
* - \Drupal\Core\Logger\RfcLogLevel::CRITICAL
* - \Drupal\Core\Logger\RfcLogLevel::ERROR
* - \Drupal\Core\Logger\RfcLogLevel::WARNING
* - \Drupal\Core\Logger\RfcLogLevel::NOTICE
* - \Drupal\Core\Logger\RfcLogLevel::INFO
* - \Drupal\Core\Logger\RfcLogLevel::DEBUG.
*
* @return \Drupal\purge\Logger\LoggerChannelPartInterface
* The channel part instance.
*/
public function create($id, array $grants = []);
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
LoggerChannelPartFactoryInterface:: |
public | function | Create a channel part instance. | 1 |
ServiceModifierInterface:: |
public | function | Modifies existing service definitions. | 13 |
ServiceProviderInterface:: |
public | function | Registers services to the container. | 14 |