Bitrix24\Event\Event::isEventHandlerCodeValid PHP Method

isEventHandlerCodeValid() protected method

check is event handler code valid
protected isEventHandlerCodeValid ( $eventHandlerName ) : boolean
$eventHandlerName
return boolean
    protected function isEventHandlerCodeValid($eventHandlerName)
    {
        $reflection = new \ReflectionClass('\\Bitrix24\\Presets\\Event\\Event');
        $result = $reflection->getConstant(strtoupper($eventHandlerName));
        return isset($result);
    }