1 {% extends "base/class.php.twig" %}
4 \Drupal\{{module}}\{{ class }}.
7 {% block namespace_class %}
8 namespace Drupal\{{module}};{% endblock %}
10 {% block class_declaration %}
14 * @package Drupal\{{module}}
16 class {{ class }}{% if(interface is defined and interface) %} implements {{ interface }}{% endif %} {% endblock %}
17 {% block class_construct %}
19 * Constructs a new {{ class }} object.
21 public function __construct({{ servicesAsParameters(services)|join(', ') }}) {
22 {{ serviceClassInitialization(services) }}