Version 1
[yaffs-website] / web / core / tests / Drupal / Tests / Core / Plugin / Fixtures / TestConfigurablePlugin.php
diff --git a/web/core/tests/Drupal/Tests/Core/Plugin/Fixtures/TestConfigurablePlugin.php b/web/core/tests/Drupal/Tests/Core/Plugin/Fixtures/TestConfigurablePlugin.php
new file mode 100644 (file)
index 0000000..383b4d2
--- /dev/null
@@ -0,0 +1,38 @@
+<?php
+
+namespace Drupal\Tests\Core\Plugin\Fixtures;
+
+use Drupal\Component\Plugin\ConfigurablePluginInterface;
+use Drupal\Component\Plugin\PluginBase;
+
+class TestConfigurablePlugin extends PluginBase implements ConfigurablePluginInterface {
+
+  /**
+   * {@inheritdoc}
+   */
+  public function getConfiguration() {
+    return $this->configuration;
+  }
+
+  /**
+   * {@inheritdoc}
+   */
+  public function setConfiguration(array $configuration) {
+    $this->configuration = $configuration;
+  }
+
+  /**
+   * {@inheritdoc}
+   */
+  public function defaultConfiguration() {
+    return [];
+  }
+
+  /**
+   * {@inheritdoc}
+   */
+  public function calculateDependencies() {
+    return [];
+  }
+
+}