yii\web\ErrorHandler::getTypeUrl PHP Method

getTypeUrl() protected method

Returns the informational link URL for a given PHP type/class.
See also: addTypeLinks()
protected getTypeUrl ( string $class, string | null $method ) : string | null
$class string the type or class name.
$method string | null the method name.
return string | null the informational link URL.
    protected function getTypeUrl($class, $method)
    {
        if (strpos($class, 'yii\\') !== 0) {
            return null;
        }
        $page = $this->htmlEncode(strtolower(str_replace('\\', '-', $class)));
        $url = "http://www.yiiframework.com/doc-2.0/{$page}.html";
        if ($method) {
            $url .= "#{$method}()-detail";
        }
        return $url;
    }