for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace EventEspresso\core\domain\entities\routing\specifications\admin;
use EventEspresso\core\domain\entities\routing\specifications\RouteMatchSpecification;
/**
* Class EspressoEventsListTable
* Returns true when the current request is for the Event List table admin page
*
* @package EventEspresso\core\domain\entities\routing\specifications
* @author Brent Christensen
* @since 4.9.71.p
*/
class EspressoEventsListTable extends RouteMatchSpecification
{
* returns true if current request matches specification
* @return boolean
public function isMatchingRoute()
return $this->request->getRequestParam('page') === 'espresso_events'
&& (
$this->request->getRequestParam('action') === 'default'
|| $this->request->requestParamIsSet('action') === false
);
}