grid\ActionColumn $urlCreator

$urlCreator public property

A callback that creates a button URL using the specified model information. The signature of the callback should be the same as that of createUrl() Since 2.0.10 it can accept additional parameter, which refers to the column instance itself:

function (string $action, mixed $model, mixed $key, integer $index, ActionColumn $this) {
    //return string;
}

If this property is not set, button URLs will be created using createUrl().

public callable $urlCreator = null
doc_Yii
2016-10-30 17:03:59
Comments
Leave a Comment

Please login to continue.