diff --git a/core/lib/Drupal/Core/Menu/ContextualLinkDefault.php b/core/lib/Drupal/Core/Menu/ContextualLinkDefault.php index 7d1f2f8..19671fe 100644 --- a/core/lib/Drupal/Core/Menu/ContextualLinkDefault.php +++ b/core/lib/Drupal/Core/Menu/ContextualLinkDefault.php @@ -7,7 +7,7 @@ namespace Drupal\Core\Menu; -use Drupal\Core\Plugin\PluginBase; +use Drupal\Component\Plugin\PluginBase; use Symfony\Component\HttpFoundation\Request; /** diff --git a/core/lib/Drupal/Core/Menu/LocalActionDefault.php b/core/lib/Drupal/Core/Menu/LocalActionDefault.php index 8be63cb..30467bb 100644 --- a/core/lib/Drupal/Core/Menu/LocalActionDefault.php +++ b/core/lib/Drupal/Core/Menu/LocalActionDefault.php @@ -7,8 +7,9 @@ namespace Drupal\Core\Menu; +use Drupal\Component\Plugin\PluginBase; use Drupal\Core\Plugin\ContainerFactoryPluginInterface; -use Drupal\Core\Plugin\PluginBase; +use Drupal\Core\DependencyInjection\DependencySerializationTrait; use Drupal\Core\Routing\RouteMatchInterface; use Drupal\Core\Routing\RouteProviderInterface; use Symfony\Component\DependencyInjection\ContainerInterface; @@ -19,6 +20,8 @@ */ class LocalActionDefault extends PluginBase implements LocalActionInterface, ContainerFactoryPluginInterface { + use DependencySerializationTrait; + /** * The route provider to load routes by name. * diff --git a/core/lib/Drupal/Core/Menu/LocalTaskDefault.php b/core/lib/Drupal/Core/Menu/LocalTaskDefault.php index d8a792e..94de6e9 100644 --- a/core/lib/Drupal/Core/Menu/LocalTaskDefault.php +++ b/core/lib/Drupal/Core/Menu/LocalTaskDefault.php @@ -7,7 +7,7 @@ namespace Drupal\Core\Menu; -use Drupal\Core\Plugin\PluginBase; +use Drupal\Component\Plugin\PluginBase; use Drupal\Core\Routing\RouteMatchInterface; use Symfony\Component\HttpFoundation\Request; diff --git a/core/modules/comment/src/Plugin/Menu/LocalTask/UnapprovedComments.php b/core/modules/comment/src/Plugin/Menu/LocalTask/UnapprovedComments.php index 1fa0530..a1dad11 100644 --- a/core/modules/comment/src/Plugin/Menu/LocalTask/UnapprovedComments.php +++ b/core/modules/comment/src/Plugin/Menu/LocalTask/UnapprovedComments.php @@ -8,6 +8,7 @@ namespace Drupal\comment\Plugin\Menu\LocalTask; use Drupal\comment\CommentStorageInterface; +use Drupal\Core\DependencyInjection\DependencySerializationTrait; use Drupal\Core\Menu\LocalTaskDefault; use Drupal\Core\Plugin\ContainerFactoryPluginInterface; use Drupal\Core\StringTranslation\TranslationWrapper; @@ -18,6 +19,8 @@ */ class UnapprovedComments extends LocalTaskDefault implements ContainerFactoryPluginInterface { + use DependencySerializationTrait; + /** * The comment storage service. *