X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs-website;a=blobdiff_plain;f=vendor%2Fdrupal%2Fconsole%2Ftemplates%2Fmodule%2Fsrc%2Fplugin-type-annotation-base.php.twig;fp=vendor%2Fdrupal%2Fconsole%2Ftemplates%2Fmodule%2Fsrc%2Fplugin-type-annotation-base.php.twig;h=59e30b33f294b692aab866c0db6c17631e51ce1b;hp=0000000000000000000000000000000000000000;hb=a2bd1bf0c2c1f1a17d188f4dc0726a45494cefae;hpb=57c063afa3f66b07c4bbddc2d6129a96d90f0aad diff --git a/vendor/drupal/console/templates/module/src/plugin-type-annotation-base.php.twig b/vendor/drupal/console/templates/module/src/plugin-type-annotation-base.php.twig new file mode 100644 index 000000000..59e30b33f --- /dev/null +++ b/vendor/drupal/console/templates/module/src/plugin-type-annotation-base.php.twig @@ -0,0 +1,23 @@ +{% extends "base/class.php.twig" %} + +{% block file_path %} +\Drupal\{{ module }}\Plugin\{{ class_name }}Base. +{% endblock %} + +{% block namespace_class %} +namespace Drupal\{{ module }}\Plugin; +{% endblock %} + +{% block use_class %} +use Drupal\Component\Plugin\PluginBase; +{% endblock %} + +{% block class_declaration %} +/** + * Base class for {{ label }} plugins. + */ +abstract class {{ class_name }}Base extends PluginBase implements {{ class_name }}Interface {% endblock %} +{% block class_methods %} + + // Add common methods and abstract methods for your plugin type here. +{% endblock %}