add builer block context
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
This commit is contained in:
parent
d1fa02d30a
commit
0469c32dc2
|
@ -117,7 +117,7 @@ Create a template:
|
|||
|
||||
{# If it's a container: #}
|
||||
{% for item in children %}
|
||||
{{ item|block_to_html }}
|
||||
{{ item|block_to_html(context) }}
|
||||
{% endfor %}
|
||||
</div>
|
||||
```
|
||||
|
@ -143,7 +143,7 @@ class CustomBlock extends BuilderBlock
|
|||
{
|
||||
// ...
|
||||
|
||||
public function buildVars(array $data)
|
||||
public function buildVars(array $data, array $context)
|
||||
{
|
||||
$this->vars['bar'] = 'bar';
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue