title: Initialize function in twig?
body: <p>How to initialize functions in .twig file ? </p>
  
  <pre><code>&lt;?php function renderCategories($categories, $selected, $button_edit, $column_sort_order, $column_name, $column_action) { ?&gt;
      function body..
  &lt;?php } ?&gt;
  </code></pre>
  
  <p>How that function to become in .twig format ?
  Like that:</p>
  
  <pre><code>{{ function renderCategories(categories, selected, button_edit, column_sort_order, column_name, column_action) }}
  </code></pre>
  
  <p>But how to set end of function ?</p>