yii2 Gridview -Aktion ändern URLs

<?= GridView::widget([
        ...
        'columns' => [
			...
            [
                'class' => 'yii\grid\ActionColumn',
                'urlCreator' => function ($action, $model, $key, $index) {
                    return Url::toRoute(['controller/' . $action, 'id' => $model->id]);
                }
            ],
        ],
  ]) ?>
Wicked Wolf