Elgg\HooksRegistrationService::hasHandler PHP Метод

hasHandler() публичный Метод

If you need to consider "all" handlers, you must check them independently, or use (bool)elgg_get_ordered_hook_handlers().
public hasHandler ( string $name, string $type ) : boolean
$name string The name of the hook
$type string The type of the hook
Результат boolean
    public function hasHandler($name, $type)
    {
        return !empty($this->registrations[$name][$type]);
    }