public setReturnAction ( string | null $actionId = null ) | ||
$actionId | string | null | action ID, if not set current action will be used. |
public function setReturnAction($actionId = null)
{
if ($actionId === null) {
$actionId = $this->id;
}
if (strpos($actionId, '/') === false) {
$actionId = $this->controller->getUniqueId() . '/' . $actionId;
}
$sessionKey = '__adminReturnAction';
Yii::$app->getSession()->set($sessionKey, $actionId);
}