Version 1
[yaffs-website] / vendor / drupal / console / templates / module / src / Entity / interface-entity.php.twig
diff --git a/vendor/drupal/console/templates/module/src/Entity/interface-entity.php.twig b/vendor/drupal/console/templates/module/src/Entity/interface-entity.php.twig
new file mode 100644 (file)
index 0000000..bf8b769
--- /dev/null
@@ -0,0 +1,21 @@
+{% extends "base/class.php.twig" %}
+
+{% block file_path %}
+\Drupal\{{module}}\Entity\{{ entity_class }}Interface.
+{% endblock %}
+
+{% block namespace_class %}
+namespace Drupal\{{module}}\Entity;
+{% endblock %}
+
+{% block use_class %}
+use Drupal\Core\Config\Entity\ConfigEntityInterface;
+{% endblock %}
+
+{% block class_declaration %}
+/**
+ * Provides an interface for defining {{ label }} entities.
+ */
+interface {{ entity_class }}Interface extends ConfigEntityInterface {% endblock %}
+{% block class_methods %}
+  // Add get/set methods for your configuration properties here.{% endblock %}