Commit 49dc61d4 authored by catch's avatar catch
Browse files

Issue #3155770 by Hardik_Patel_12, naresh_bavaskar: Parent class implements...

Issue #3155770 by Hardik_Patel_12, naresh_bavaskar: Parent class implements ContainerFactoryPluginInterface, so it's not necessary for its child classes to repeat that they do as well
parent b7627bca
......@@ -7,7 +7,6 @@
use Drupal\Core\Entity\EntityTypeBundleInfoInterface;
use Drupal\Core\Entity\EntityTypeManagerInterface;
use Drupal\Core\Messenger\MessengerInterface;
use Drupal\Core\Plugin\ContainerFactoryPluginInterface;
use Drupal\Core\Session\AccountInterface;
use Drupal\content_moderation\ModerationInformationInterface;
use Symfony\Component\DependencyInjection\ContainerInterface;
......@@ -17,7 +16,7 @@
*
* @see \Drupal\Core\Action\Plugin\Action\UnpublishAction
*/
class ModerationOptOutUnpublish extends UnpublishAction implements ContainerFactoryPluginInterface {
class ModerationOptOutUnpublish extends UnpublishAction {
/**
* Moderation information service.
......
......@@ -8,7 +8,6 @@
use Drupal\Core\Field\FieldItemListInterface;
use Drupal\Core\Field\Plugin\Field\FieldWidget\OptionsSelectWidget;
use Drupal\Core\Form\FormStateInterface;
use Drupal\Core\Plugin\ContainerFactoryPluginInterface;
use Drupal\Core\Session\AccountInterface;
use Drupal\content_moderation\ModerationInformation;
use Drupal\content_moderation\StateTransitionValidationInterface;
......@@ -25,7 +24,7 @@
* }
* )
*/
class ModerationStateWidget extends OptionsSelectWidget implements ContainerFactoryPluginInterface {
class ModerationStateWidget extends OptionsSelectWidget {
/**
* Current user service.
......
......@@ -6,7 +6,6 @@
use Drupal\Core\Field\FieldItemListInterface;
use Drupal\Core\Field\FieldDefinitionInterface;
use Drupal\Core\Form\FormStateInterface;
use Drupal\Core\Plugin\ContainerFactoryPluginInterface;
use Drupal\datetime\Plugin\Field\FieldType\DateTimeItem;
use Symfony\Component\DependencyInjection\ContainerInterface;
......@@ -21,7 +20,7 @@
* }
* )
*/
class DateTimeDefaultWidget extends DateTimeWidgetBase implements ContainerFactoryPluginInterface {
class DateTimeDefaultWidget extends DateTimeWidgetBase {
/**
* The date format storage.
......
......@@ -6,7 +6,6 @@
use Drupal\Core\Field\FieldDefinitionInterface;
use Drupal\Core\Field\FieldItemListInterface;
use Drupal\Core\Form\FormStateInterface;
use Drupal\Core\Plugin\ContainerFactoryPluginInterface;
use Drupal\datetime_range\Plugin\Field\FieldType\DateRangeItem;
use Symfony\Component\DependencyInjection\ContainerInterface;
......@@ -21,7 +20,7 @@
* }
* )
*/
class DateRangeDefaultWidget extends DateRangeWidgetBase implements ContainerFactoryPluginInterface {
class DateRangeDefaultWidget extends DateRangeWidgetBase {
/**
* The date format storage.
......
......@@ -8,7 +8,6 @@
use Drupal\Core\Field\FieldStorageDefinitionInterface;
use Drupal\Core\Field\WidgetBase;
use Drupal\Core\Form\FormStateInterface;
use Drupal\Core\Plugin\ContainerFactoryPluginInterface;
use Drupal\Core\Render\Element;
use Drupal\Core\Render\ElementInfoManagerInterface;
use Drupal\file\Element\ManagedFile;
......@@ -27,7 +26,7 @@
* }
* )
*/
class FileWidget extends WidgetBase implements ContainerFactoryPluginInterface {
class FileWidget extends WidgetBase {
/**
* {@inheritdoc}
......
......@@ -16,7 +16,6 @@
use Drupal\Core\Field\FieldStorageDefinitionInterface;
use Drupal\Core\Field\WidgetBase;
use Drupal\Core\Form\FormStateInterface;
use Drupal\Core\Plugin\ContainerFactoryPluginInterface;
use Drupal\Core\Security\TrustedCallbackInterface;
use Drupal\Core\Session\AccountInterface;
use Drupal\Core\Url;
......@@ -43,7 +42,7 @@
* @internal
* Plugin classes are internal.
*/
class MediaLibraryWidget extends WidgetBase implements ContainerFactoryPluginInterface, TrustedCallbackInterface {
class MediaLibraryWidget extends WidgetBase implements TrustedCallbackInterface {
/**
* Entity type manager service.
......
......@@ -5,7 +5,6 @@
use Drupal\Component\Plugin\DependentPluginInterface;
use Drupal\Core\Entity\DependencyTrait;
use Drupal\Core\Entity\EntityTypeManagerInterface;
use Drupal\Core\Plugin\ContainerFactoryPluginInterface;
use Drupal\Core\State\StateInterface;
use Drupal\migrate\Plugin\MigrationInterface;
use Drupal\migrate\Exception\RequirementsException;
......@@ -27,7 +26,7 @@
* @see \Drupal\migrate\Plugin\migrate\source\SqlBase
* @see \Drupal\migrate\Plugin\migrate\source\SourcePluginBase
*/
abstract class DrupalSqlBase extends SqlBase implements ContainerFactoryPluginInterface, DependentPluginInterface {
abstract class DrupalSqlBase extends SqlBase implements DependentPluginInterface {
use DependencyTrait;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment