Version 1
[yaffs-website] / vendor / drupal / console / templates / module / src / entity-translation-handler.php.twig
diff --git a/vendor/drupal/console/templates/module/src/entity-translation-handler.php.twig b/vendor/drupal/console/templates/module/src/entity-translation-handler.php.twig
new file mode 100644 (file)
index 0000000..4ca6378
--- /dev/null
@@ -0,0 +1,18 @@
+{% extends "base/class.php.twig" %}
+
+{% block namespace_class %}
+namespace Drupal\{{module}};
+{% endblock %}
+
+{% block use_class %}
+use Drupal\content_translation\ContentTranslationHandler;
+{% endblock %}
+
+{% block class_declaration %}
+/**
+ * Defines the translation handler for {{ entity_name }}.
+ */
+class {{ entity_class }}TranslationHandler extends ContentTranslationHandler {% endblock %}
+{% block class_methods %}
+  // Override here the needed methods from ContentTranslationHandler.
+{% endblock %}