You are here

protected function KeyProviderRequirementsBase::getLogger in Apigee Edge 8

Gets the logger service.

Return value

\Psr\Log\LoggerInterface The logger service.

File

src/Plugin/KeyProvider/KeyProviderRequirementsBase.php, line 121

Class

KeyProviderRequirementsBase
Base class for key providers with pre-requirements.

Namespace

Drupal\apigee_edge\Plugin\KeyProvider

Code

protected function getLogger() : LoggerInterface {

  // This fallback is needed when the plugin instance is serialized and the
  // property is null.
  return $this->logger ?? \Drupal::service('logger.channel.apigee_edge');
}