bedezign\yii2\audit\Audit::onBeforeAction PHP Method

onBeforeAction() public method

Called to evaluate if the current request should be logged
public onBeforeAction ( ActionEvent $event )
$event yii\base\ActionEvent
    public function onBeforeAction($event)
    {
        if (!empty($this->trackActions) && !$this->routeMatches($event->action->uniqueId, $this->trackActions)) {
            return;
        }
        if (!empty($this->ignoreActions) && $this->routeMatches($event->action->uniqueId, $this->ignoreActions)) {
            return;
        }
        // Still here, start audit
        $this->getEntry(true);
    }