 updated or
deleted.</p>
<p>With <em>popEvent</em>, the last added event of the given moment and action is
removed from the list and the closure is returned:</p>
<div class="highlight-php"><div class="highlight"><pre><span></span><span class="x">$closure = $app[&#39;crud&#39;]-&gt;getData(&#39;library&#39;)-&gt;popEvent(&#39;before&#39;, &#39;create&#39;);</span>
</pre></div>
</div>
<p>If no more events are available, <em>popEvent</em> will return <em>null</em>.</p>
</div>


           </div>
          </di