X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs-website;a=blobdiff_plain;f=vendor%2Fdrupal%2Fconsole%2Ftemplates%2Fmodule%2Fsrc%2FEntity%2Finterface-entity.php.twig;fp=vendor%2Fdrupal%2Fconsole%2Ftemplates%2Fmodule%2Fsrc%2FEntity%2Finterface-entity.php.twig;h=bf8b7694de0f3e40febd5a46ffe508a0d2b638e5;hp=0000000000000000000000000000000000000000;hb=a2bd1bf0c2c1f1a17d188f4dc0726a45494cefae;hpb=57c063afa3f66b07c4bbddc2d6129a96d90f0aad 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 index 000000000..bf8b7694d --- /dev/null +++ b/vendor/drupal/console/templates/module/src/Entity/interface-entity.php.twig @@ -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 %}