0 follower

Interface Yiisoft\Yii\DataView\Url\UrlParameterProviderInterface

Implemented byYiisoft\Yii\DataView\Url\NullUrlParameterProvider, Yiisoft\Yii\DataView\YiiRouter\UrlParameterProvider

UrlParameterProviderInterface defines a contract for retrieving URL parameters.

Public Methods

Hide inherited methods

Method Description Defined By
get() Retrieves a URL parameter value by its name and type. Yiisoft\Yii\DataView\Url\UrlParameterProviderInterface

Method Details

Hide inherited methods

get() public abstract method

Retrieves a URL parameter value by its name and type.

public abstract string|null get ( string $name, \Yiisoft\Yii\DataView\Url\UrlParameterType $type )
$name string

The name of the parameter to retrieve.

$type \Yiisoft\Yii\DataView\Url\UrlParameterType

The type of the parameter.

return string|null

The parameter value if found, null otherwise.

                public function get(string $name, UrlParameterType $type): ?string;