Interface Yiisoft\Yii\DataView\Url\UrlParameterProviderInterface
| Implemented by | Yiisoft\Yii\DataView\Url\NullUrlParameterProvider, Yiisoft\Yii\DataView\YiiRouter\UrlParameterProvider |
|---|
UrlParameterProviderInterface defines a contract for retrieving URL parameters.
Public Methods
| Method | Description | Defined By |
|---|---|---|
| get() | Retrieves a URL parameter value by its name and type. | Yiisoft\Yii\DataView\Url\UrlParameterProviderInterface |
Method Details
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, |
|---|---|---|
public function get(string $name, UrlParameterType $type): ?string;
Signup or Login in order to comment.