src/Hook/Hook.php
public function getCallback($hook)
    {
        if (array_key_exists($hook, $this->hooks)) {
            return $this->hooks[$hook];
        }

        return null;
    }
public function getCallback($hook)
    {
        if (array_key_exists($hook, $this->hooks)) {
            return $this->hooks[$hook];
        }

        return null;
    }
public function getCallback ( $ hook ) { if ( array_key_exists ( $ hook , $ this -> hooks ) ) { return $ this -> hooks [ $ hook ] ; } return null ; }
Return the callback registered with the hook.

@param string $hook The hook name.

@return array|null
Return the callback registered with the hook .