title: CakePHP 3.0 - Post Link - adding classes removes alert confirmation functionality
body: <p>When I add the class array to the postLink, the confirm alert stops working. I have moved the class array into different positions but within the postLink but nothing seems to work.   </p>
  
  <pre><code>&lt;?= $this-&gt;Form-&gt;postLink(__('Delete'),
  ['controller' =&gt; '&lt;%= $details['controller'] %&gt;', 'action' =&gt; 'delete', &lt;%= $otherPk %&gt;],
  ['class' =&gt; 'btn btn-danger btn-sm'],
  ['confirm' =&gt; __('Are you sure you want to delete # {0}?', &lt;%= $otherPk %&gt;)]) %&gt;
  </code></pre>
  
  <p>The above code will add the right classes to the link, but the confirmation doesn't work, it just deletes the entry right away.</p>