File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ namespace Drupal\{{ module }};
11
11
12
12
{% block use_class %}
13
13
use Drupal\Core\StringTranslation\StringTranslationTrait;
14
- use Drupal\{{ module }}\Entity\{{ entity_class }}Type ;
14
+ use Drupal\{{ module }}\Entity\{{ entity_class }};
15
15
16
16
{% endblock %}
17
17
@@ -37,7 +37,7 @@ class {{ entity_class }}Permissions{% endblock %}
37
37
public function generatePermissions() {
38
38
$perms = [];
39
39
40
- foreach ({{ entity_class }}Type ::loadMultiple() as $type) {
40
+ foreach ({{ entity_class }}::loadMultiple() as $type) {
41
41
$perms += $this->buildPermissions($type);
42
42
}
43
43
@@ -47,13 +47,13 @@ class {{ entity_class }}Permissions{% endblock %}
47
47
/**
48
48
* Returns a list of node permissions for a given node type.
49
49
*
50
- * @param \Drupal\{{ module }}\Entity\{{ entity_class }}Type $type
50
+ * @param \Drupal\{{ module }}\Entity\{{ entity_class }} $type
51
51
* The {{ entity_class }} type.
52
52
*
53
53
* @return array
54
54
* An associative array of permission names and descriptions.
55
55
*/
56
- protected function buildPermissions({{ entity_class }}Type $type) {
56
+ protected function buildPermissions({{ entity_class }} $type) {
57
57
$type_id = $type->id();
58
58
$type_params = ['%type_name' => $type->label()];
59
59
You can’t perform that action at this time.
0 commit comments