Wrap content with div

Permalink
I have below code which works in 5.6

Which renders id with article_1,2,3...

$a->setBlockWrapperStart('<div class="article" id="article_%4$s">', true);
$a->setBlockWrapperEnd('</div>');

This code doesn't work with 5.7

What do i change for (id="article_%4$s") ?

 
teenak replied on at Permalink Reply
$a->setBlockWrapperStart('<div class="article" id="article_%4$s">', true);
$a->setBlockWrapperEnd('</div>');

This code doesn't work with 5.7

What do i change to get html result like (id="article_1") and (id="article_2")... ?