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
Loading
Loading
Loading
Loading
+1 −2
Changes for core/modules/content_moderation/src/Plugin/Action/ModerationOptOutUnpublish.php: 1 added line, 2 removed lines.
Original line number Diff line number Diff line
@@ -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.
+1 −2
Changes for core/modules/content_moderation/src/Plugin/Field/FieldWidget/ModerationStateWidget.php: 1 added line, 2 removed lines.
Original line number Diff line number Diff line
@@ -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.
+1 −2
Changes for core/modules/datetime/src/Plugin/Field/FieldWidget/DateTimeDefaultWidget.php: 1 added line, 2 removed lines.
Original line number Diff line number Diff line
@@ -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.
+1 −2
Changes for core/modules/datetime_range/src/Plugin/Field/FieldWidget/DateRangeDefaultWidget.php: 1 added line, 2 removed lines.
Original line number Diff line number Diff line
@@ -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.
+1 −2
Changes for core/modules/file/src/Plugin/Field/FieldWidget/FileWidget.php: 1 added line, 2 removed lines.
Original line number Diff line number Diff line
@@ -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}
Loading