PHP   27
currentContext
Guest on 11th March 2023 11:11:07 PM


  1. <?php
  2. $currentContext = $this-currentRouteMatch-getParameter('context') ? $this->currentRouteMatch->getParameter('context')->id() : ''; $currentContext = $this->currentRouteMatch->getParameter('context');
  3. $currentContext = ($currentContext instanceof Context) ? $currentContext->id();
  4. ?>

Raw Paste

Login or Register to edit or fork this paste. It's free.