-
-
Notifications
You must be signed in to change notification settings - Fork 58
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Block::getTemplate() fails on innerBlock #212
Comments
Yeah I think the method will have to be split or the logic changed slightly. In the current form, that map needs to be returning as an array. |
Re-reading 209 again, I'm slightly confused by the initial issue. |
Unfortunately, I had not tested the issue mentioned by @djaevlen. As a quickfix, if I ditch the |
i should have a fix in a few minutes |
In my issue the block (acf/button) that mainly have the template issue is using a /**
* The block field group.
*
* @return array
*/
public function fields()
{
$button = Builder::make('button');
$button->addPartial(ButtonPartial::class);
return $button->build();
} |
let me know if this still happens on .10 |
Since #209
Block::getTemplate()
returns a JSON / string. Hence themap()
callback inacf-composer/src/Block.php
Lines 339 to 341 in a497082
->all()
on a string.I'm currently not sure, whether we need the
->all()
in the callback.The text was updated successfully, but these errors were encountered: