application/Espo/Core/HookManager.php
protected function hookExists($className, array $hookData)
    {
        $class = preg_replace('/^.*\\\(.*)$/', '$1', $className);

        foreach ($hookData as $hookData) {
            if (preg_match('/\\\\'.$class.'$/', $hookData['className'])) {
                return true;
            }
        }

        return false;
    }
protected function hookExists($className, array $hookData)
    {
        $class = preg_replace('/^.*\\\(.*)$/', '$1', $className);

        foreach ($hookData as $hookData) {
            if (preg_match('/\\\\'.$class.'$/', $hookData['className'])) {
                return true;
            }
        }

        return false;
    }
protected function hookExists ( $ className , array $ hookData ) { $ class = preg_replace ( '/^.*\\\(.*)$/' , '$1' , $ className ) ; foreach ( $ hookData as $ hookData ) { if ( preg_match ( '/\\\\' . $ class . '$/' , $ hookData [ 'className' ] ) ) { return true ; } } return false ; }
Check if hook exists in the list

@param  string  $className
@param  array  $hookData

@return boolean
Check if hook exists in the list