Skip to content

Commit 129c824

Browse files
Output from generate:plugin:block fixed. (#4218)
1 parent f4eb31b commit 129c824

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

templates/module/src/Plugin/Block/block.php.twig

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ class {{class_name}} extends BlockBase {% if services is not empty %}implements
5555
return [
5656
{% for input in inputs %}
5757
{% if input.default_value is defined and input.default_value|length %}
58-
'{{ input.name }}' => {{ input.default_value }},
58+
'{{ input.name }}' => $this->('{{ input.default_value }}'),
5959
{% endif %}
6060
{% endfor %}
6161
] + parent::defaultConfiguration();
@@ -111,7 +111,7 @@ class {{class_name}} extends BlockBase {% if services is not empty %}implements
111111
{% endif %}
112112
{% for input in inputs %}
113113
{% if twig_template is defined %}
114-
$build['#conten'][] = $this->configuration['{{ input.name }}'];
114+
$build['#content'][] = $this->configuration['{{ input.name }}'];
115115
{% else %}
116116
$build['{{plugin_id}}_{{ input.name }}']['#markup'] = '<p>' . $this->configuration['{{ input.name }}'] . '</p>';
117117
{% endif %}

0 commit comments

Comments
 (0)