File tree Expand file tree Collapse file tree
templates/module/src/Plugin/Block Expand file tree Collapse file tree Original file line number Diff line number Diff 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 %}
You can’t perform that action at this time.
0 commit comments