<td>
<a href="<?= $escaper->escapeUrl($block->getUrl('blog/manage/edit', ['id'=>$escaper->escapeHtml($blog->getId())]))?>">
<?= __('Edit') ?>
</a>
</td>
When we use the
getUrl function, we pass an array as the second parameter. This array contains key-value pairs, like ['id' => $post->getEntityId()]. These key-value pairs are added to the URL as parameters when generating the link. For example, ?id=123 would be added to the URL if ['id' => 123] was passed in the array.
