Devise\Pages\PageController::getFunction PHP Метод

getFunction() защищенный Метод

Get the results from a function as the response type
protected getFunction ( DvsPage $page ) : array
$page DvsPage
Результат array
    protected function getFunction($page)
    {
        $config = $page->response_params != null && $page->response_params != '' ? [$page->response_path => explode(',', $page->response_params)] : $page->response_path;
        if (isset($config[$page->response_path])) {
            // wrapping params in curly braces
            foreach ($config[$page->response_path] as &$param) {
                $param = '{' . $param . '}';
            }
        }
        return $this->DataBuilder->getValue($config);
    }