Final Class Yiisoft\Yii\DataView\YiiRouter\ActionColumnUrlConfig
| Inheritance | Yiisoft\ |
|---|
Configuration class for generating URLs in action columns.
Public Properties
| Property | Type | Description | Defined By |
|---|---|---|---|
| $arguments | array | Yiisoft\ |
|
| $baseRouteName | ?string | Yiisoft\ |
|
| $primaryKey | ?string | Yiisoft\ |
|
| $primaryKeyParameterType | ?\ |
Yiisoft\ |
|
| $queryParameters | array | Yiisoft\ |
Public Methods
| Method | Description | Defined By |
|---|---|---|
| __construct() | Creates a new URL configuration instance. | Yiisoft\ |
Property Details
Method Details
Creates a new URL configuration instance.
| public mixed __construct ( string|null $primaryKey = null, string|null $baseRouteName = null, array $arguments = [], array $queryParameters = [], \ | ||
| $primaryKey | string|null |
The primary key field name used to generate URLs. |
| $baseRouteName | string|null |
The base route name for generating URLs. |
| $arguments | array |
Additional route arguments to include in the URL. |
| $queryParameters | array |
Additional query parameters to append to the URL. |
| $primaryKeyParameterType | \ |
How to include the primary key in the URL. |
public function __construct(
public readonly ?string $primaryKey = null,
public readonly ?string $baseRouteName = null,
public readonly array $arguments = [],
public readonly array $queryParameters = [],
public readonly ?UrlParameterType $primaryKeyParameterType = null,
) {}
User Contributed Notes
Leave a comment
Join the conversation to share a note.