Version 1
[yaffs-website] / web / core / lib / Drupal / Core / Plugin / PluginBase.php
diff --git a/web/core/lib/Drupal/Core/Plugin/PluginBase.php b/web/core/lib/Drupal/Core/Plugin/PluginBase.php
new file mode 100644 (file)
index 0000000..1148768
--- /dev/null
@@ -0,0 +1,18 @@
+<?php
+
+namespace Drupal\Core\Plugin;
+
+use Drupal\Component\Plugin\PluginBase as ComponentPluginBase;
+use Drupal\Core\StringTranslation\StringTranslationTrait;
+use Drupal\Core\DependencyInjection\DependencySerializationTrait;
+
+/**
+ * Base class for plugins supporting metadata inspection and translation.
+ *
+ * @ingroup plugin_api
+ */
+abstract class PluginBase extends ComponentPluginBase {
+  use StringTranslationTrait;
+  use DependencySerializationTrait;
+
+}