Skip to content
Snippets Groups Projects
Commit 1fdd6797 authored by Tim Kruijsen's avatar Tim Kruijsen Committed by Yaroslav Lushnikov
Browse files

Issue #2954559 by timKruijsen, pdenooijer, zvse: Use logger interface to add...

Issue #2954559 by timKruijsen, pdenooijer, zvse: Use logger interface to add support for other loggers
parent 7532ee26
No related branches found
Tags 8.x-1.0
No related merge requests found
......@@ -6,13 +6,13 @@ use Drupal\Core\Entity\EntityStorageInterface;
use Drupal\Core\Field\FieldDefinitionInterface;
use Drupal\Core\Field\FieldItemListInterface;
use Drupal\Core\Form\FormStateInterface;
use Drupal\Core\Logger\LoggerChannel;
use Drupal\Core\Render\Markup;
use Drupal\Core\Session\AccountInterface;
use Drupal\Core\Url;
use Drupal\file\Entity\File;
use Drupal\image\Plugin\Field\FieldFormatter\ImageFormatter;
use Drupal\Core\Cache\Cache;
use Psr\Log\LoggerInterface;
use Symfony\Component\DependencyInjection\ContainerInterface;
/**
......@@ -37,14 +37,14 @@ class SvgImageFormatter extends ImageFormatter {
/**
* File logger channel.
*
* @var \Drupal\Core\Logger\LoggerChannel
* @var \Psr\Log\LoggerInterface
*/
private $logger;
/**
* {@inheritdoc}
*/
public function __construct($pluginId, $pluginDefinition, FieldDefinitionInterface $fieldDefinition, array $settings, $label, $viewMode, array $thirdPartySettings, AccountInterface $currentUser, EntityStorageInterface $ImageStyleStorage, LoggerChannel $logger) {
public function __construct($pluginId, $pluginDefinition, FieldDefinitionInterface $fieldDefinition, array $settings, $label, $viewMode, array $thirdPartySettings, AccountInterface $currentUser, EntityStorageInterface $ImageStyleStorage, LoggerInterface $logger) {
parent::__construct($pluginId, $pluginDefinition, $fieldDefinition, $settings, $label, $viewMode, $thirdPartySettings, $currentUser, $ImageStyleStorage);
$this->logger = $logger;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment