Commit b02d3185 authored by Caspar Dunant's avatar Caspar Dunant
Browse files

Issue #3259268: Use the service interface instead of class name

parent 1327c93d
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -4,7 +4,7 @@ namespace Drupal\translation_views\Plugin\views\field;

use Drupal\content_moderation\ModerationInformationInterface;
use Drupal\content_translation\ContentTranslationManager;
use Drupal\Core\Entity\EntityTypeManager;
use Drupal\Core\Entity\EntityTypeManagerInterface;
use Drupal\Core\Form\FormStateInterface;
use Drupal\Core\Language\LanguageManagerInterface;
use Drupal\views\Plugin\views\field\FieldPluginBase;
@@ -32,7 +32,7 @@ class TranslationModerationState extends FieldPluginBase {
  /**
   * Entity type manager.
   *
   * @var \Drupal\Core\Entity\EntityTypeManager
   * @var \Drupal\Core\Entity\EntityTypeManagerInterface
   */
  protected $entityTypeManager;

@@ -45,7 +45,7 @@ class TranslationModerationState extends FieldPluginBase {
    $plugin_definition,
    ModerationInformationInterface $moderation_info,
    LanguageManagerInterface $language_manager,
    EntityTypeManager $entity_type_manager
    EntityTypeManagerInterface $entity_type_manager
  ) {
    parent::__construct($configuration, $plugin_id, $plugin_definition);

+2 −2
Original line number Diff line number Diff line
@@ -5,7 +5,7 @@ namespace Drupal\translation_views\Plugin\views\field;
use Drupal\content_translation\ContentTranslationManager;
use Drupal\Core\Entity\ContentEntityInterface;
use Drupal\Core\Entity\EntityRepositoryInterface;
use Drupal\Core\Entity\EntityTypeManager;
use Drupal\Core\Entity\EntityTypeManagerInterface;
use Drupal\Core\Language\LanguageManagerInterface;
use Drupal\Core\Session\AccountProxyInterface;
use Drupal\Core\Url;
@@ -44,7 +44,7 @@ class TranslationOperationsField extends EntityOperations {
    array $configuration,
    $plugin_id,
    array $plugin_definition,
    EntityTypeManager $entity_type_manager,
    EntityTypeManagerInterface $entity_type_manager,
    LanguageManagerInterface $language_manager,
    EntityRepositoryInterface $entity_repository,
    AccountProxyInterface $account