/** * Get the initial config data before applying any decorators. * * @param array $params * * @return mixed */ public function getBasicConfig($params = []) { return parent::getBasicConfig($params) + ['user' => ['text' => str_limit($params['user_name'], 15), 'route' => 'user.show', 'params' => [$params['user_id']]]]; }
/** * Get the initial config data before applying any decorators. * * @param array $params * * @return mixed */ public function getBasicConfig($params = []) { return parent::getBasicConfig($params) + ['edit' => ['text' => 'Update', 'route' => '', 'params' => [$params['user_id']]]]; }
/** * Get the initial config data before applying any decorators. * * @param array $params * * @return mixed */ public function getBasicConfig($params = []) { return parent::getBasicConfig($params) + ['create' => ['text' => 'Create', 'route' => '', 'params' => []]]; }