public function actionCallEdit()
{
$component = $this->_component;
if (\Yii::$app->request->get('attributes') && !($settings = \skeeks\cms\models\CmsComponentSettings::fetchByComponentDefault($component))) {
$attributes = \Yii::$app->request->get('attributes');
$component->attributes = $attributes;
} else {
$component->loadDefaultSettings();
}
if (!\Yii::$app->request->get('callableId')) {
return $this->redirect(\yii\helpers\Url::to('index') . "?" . http_build_query(\Yii::$app->request->get()));
}
return $this->render($this->action->id, ['component' => $component, 'callableId' => \Yii::$app->request->get('callableId')]);
}