How can I retrieve a container from the layout programmatically and then set/update the htmlClass?

I would like to be able to do something like the following:

$container = $layout->getContainer('main.content');
$container->setAttribute('htmlClass', 'className');

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.