Updated to Drupal 8.5. Core Media not yet in use.
[yaffs-website] / vendor / chi-teck / drupal-code-generator / templates / d8 / module / plugin-manager / src / ModelPluginBase.php.twig
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d8/module/plugin-manager/src/ModelPluginBase.php.twig b/vendor/chi-teck/drupal-code-generator/templates/d8/module/plugin-manager/src/ModelPluginBase.php.twig
new file mode 100644 (file)
index 0000000..b29a04b
--- /dev/null
@@ -0,0 +1,33 @@
+<?php
+
+namespace Drupal\{{ machine_name }};
+
+use Drupal\Component\Plugin\PluginBase;
+
+/**
+ * Base class for {{ name|lower }} plugins.
+ */
+abstract class {{ class_prefix }}PluginBase extends PluginBase implements {{ class_prefix }}Interface {
+
+  /**
+   * {@inheritdoc}
+   */
+  public function method1() {
+    return 'default implementation of ' . __FUNCTION__;
+  }
+
+  /**
+   * {@inheritdoc}
+   */
+  public function method2() {
+    return 'default implementation of ' . __FUNCTION__;
+  }
+
+  /**
+   * {@inheritdoc}
+   */
+  public function method3() {
+    return 'default implementation of ' . __FUNCTION__;
+  }
+
+}