Inpsyde\MultilingualPress\Common\ConditionalAwareRequest::type PHP Метод

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

Returns the type of the current request.
С версии: 3.0.0
public type ( ) : string
Результат string Request type, or empty string on failure.
    public function type()
    {
        if (isset($this->type)) {
            return $this->type;
        }
        $this->type = '';
        foreach ($this->callbacks as $type => $callback) {
            if (call_user_func($callback)) {
                $this->type = $type;
                break;
            }
        }
        return $this->type;
    }