summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoranon2017-09-13 22:13:55 +0200
committerEmil Stjerneman2017-09-13 22:13:55 +0200
commit3ade4a8ba4e157fc30423df14a8ee1fbd585b9da (patch)
tree082d9a6dd2439f2ffa1894ea61424648524289d2
parentd5beff3f77daa80366080369681dfff5a6b19825 (diff)
Issue #2903176 by anon: Substitution plugins using wrong PluginBase class
-rw-r--r--src/Plugin/Linkit/Substitution/Canonical.php2
-rw-r--r--src/Plugin/Linkit/Substitution/File.php2
-rw-r--r--src/Plugin/Linkit/Substitution/Media.php5
3 files changed, 5 insertions, 4 deletions
diff --git a/src/Plugin/Linkit/Substitution/Canonical.php b/src/Plugin/Linkit/Substitution/Canonical.php
index 4962687..deff892 100644
--- a/src/Plugin/Linkit/Substitution/Canonical.php
+++ b/src/Plugin/Linkit/Substitution/Canonical.php
@@ -2,10 +2,10 @@
namespace Drupal\linkit\Plugin\Linkit\Substitution;
+use Drupal\Component\Plugin\PluginBase;
use Drupal\Core\Entity\EntityInterface;
use Drupal\Core\Entity\EntityTypeInterface;
use Drupal\linkit\SubstitutionInterface;
-use Drupal\views\Plugin\views\PluginBase;
/**
* A substitution plugin for the canonical URL of an entity.
diff --git a/src/Plugin/Linkit/Substitution/File.php b/src/Plugin/Linkit/Substitution/File.php
index 46a190c..854cf21 100644
--- a/src/Plugin/Linkit/Substitution/File.php
+++ b/src/Plugin/Linkit/Substitution/File.php
@@ -2,11 +2,11 @@
namespace Drupal\linkit\Plugin\Linkit\Substitution;
+use Drupal\Component\Plugin\PluginBase;
use Drupal\Core\Entity\EntityInterface;
use Drupal\Core\Entity\EntityTypeInterface;
use Drupal\Core\GeneratedUrl;
use Drupal\linkit\SubstitutionInterface;
-use Drupal\views\Plugin\views\PluginBase;
/**
* A substitution plugin for the URL to a file.
diff --git a/src/Plugin/Linkit/Substitution/Media.php b/src/Plugin/Linkit/Substitution/Media.php
index 07124b8..a7e0295 100644
--- a/src/Plugin/Linkit/Substitution/Media.php
+++ b/src/Plugin/Linkit/Substitution/Media.php
@@ -2,12 +2,13 @@
namespace Drupal\linkit\Plugin\Linkit\Substitution;
+use Drupal\Component\Plugin\PluginBase;
use Drupal\Core\Entity\EntityInterface;
use Drupal\Core\Entity\EntityTypeInterface;
use Drupal\Core\Entity\EntityTypeManager;
use Drupal\Core\GeneratedUrl;
+use Drupal\Core\Plugin\ContainerFactoryPluginInterface;
use Drupal\linkit\SubstitutionInterface;
-use Drupal\views\Plugin\views\PluginBase;
use Symfony\Component\DependencyInjection\ContainerInterface;
/**
@@ -18,7 +19,7 @@ use Symfony\Component\DependencyInjection\ContainerInterface;
* label = @Translation("Direct URL to media file entity"),
* )
*/
-class Media extends PluginBase implements SubstitutionInterface {
+class Media extends PluginBase implements SubstitutionInterface, ContainerFactoryPluginInterface {
/**
* The entity type manager.