diff --git a/src/Entity/Redirect.php b/src/Entity/Redirect.php index 96ec229..4a1cc7f 100644 --- a/src/Entity/Redirect.php +++ b/src/Entity/Redirect.php @@ -9,7 +9,6 @@ use Drupal\Core\Entity\ContentEntityBase; use Drupal\Core\Entity\EntityStorageInterface; use Drupal\Core\Entity\EntityTypeInterface; use Drupal\Core\Field\BaseFieldDefinition; -use Drupal\Core\Language\LanguageInterface; use Drupal\link\LinkItemInterface; /** diff --git a/src/EventSubscriber/RedirectRequestSubscriber.php b/src/EventSubscriber/RedirectRequestSubscriber.php index 5215ca1..4b8821a 100644 --- a/src/EventSubscriber/RedirectRequestSubscriber.php +++ b/src/EventSubscriber/RedirectRequestSubscriber.php @@ -10,14 +10,11 @@ use Drupal\Core\Language\LanguageManagerInterface; use Drupal\Core\Logger\RfcLogLevel; use Drupal\Core\Path\AliasManager; use Drupal\Core\PathProcessor\InboundPathProcessorInterface; -use Drupal\Core\Routing\MatchingRouteNotFoundException; use Drupal\Core\Routing\TrustedRedirectResponse; use Drupal\Core\Url; use Drupal\redirect\Exception\RedirectLoopException; use Drupal\redirect\RedirectChecker; use Drupal\redirect\RedirectRepository; -use Psr\Log\InvalidArgumentException; -use Symfony\Component\HttpFoundation\RedirectResponse; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\HttpKernel\HttpKernelInterface; use Symfony\Component\HttpKernel\KernelEvents; diff --git a/src/Form/RedirectForm.php b/src/Form/RedirectForm.php index ae1c76e..b71fe7b 100644 --- a/src/Form/RedirectForm.php +++ b/src/Form/RedirectForm.php @@ -9,7 +9,6 @@ use Drupal\Core\Routing\MatchingRouteNotFoundException; use Drupal\Core\Url; use Drupal\redirect\Entity\Redirect; use Drupal\Core\Form\FormStateInterface; -use Symfony\Component\Routing\Exception\ResourceNotFoundException; class RedirectForm extends ContentEntityForm { diff --git a/src/Plugin/Field/FieldFormatter/RedirectSourceFormatter.php b/src/Plugin/Field/FieldFormatter/RedirectSourceFormatter.php index 6c828ca..abb9cd6 100644 --- a/src/Plugin/Field/FieldFormatter/RedirectSourceFormatter.php +++ b/src/Plugin/Field/FieldFormatter/RedirectSourceFormatter.php @@ -2,7 +2,6 @@ namespace Drupal\redirect\Plugin\Field\FieldFormatter; -use Drupal\Component\Utility\SafeMarkup; use Drupal\Core\Field\FormatterBase; use Drupal\Core\Field\FieldItemListInterface; diff --git a/src/Plugin/Field/FieldWidget/RedirectSourceWidget.php b/src/Plugin/Field/FieldWidget/RedirectSourceWidget.php index 1e1080e..66b0f7f 100644 --- a/src/Plugin/Field/FieldWidget/RedirectSourceWidget.php +++ b/src/Plugin/Field/FieldWidget/RedirectSourceWidget.php @@ -5,7 +5,6 @@ namespace Drupal\redirect\Plugin\Field\FieldWidget; use Drupal\Component\Utility\UrlHelper; use Drupal\Core\Field\FieldItemListInterface; use Drupal\Core\Field\WidgetBase; -use Drupal\link\Plugin\Field\FieldWidget\LinkWidget; use Drupal\Core\Url; use Drupal\Core\Form\FormStateInterface; use Symfony\Component\Routing\Exception\ResourceNotFoundException;