Devise\Pages\Viewvars\ViewvarComposer::getVars PHP Method

getVars() private method

Get the variables for this name
private getVars ( string $name ) : array
$name string
return array
    private function getVars($name)
    {
        $config = $this->Config->get('devise.templates');
        $vars = isset($config[$name]['vars']) ? $config[$name]['vars'] : null;
        $parent = isset($config[$name]['extends']) ? $config[$name]['extends'] : null;
        if ($vars || $parent) {
            $vars = $vars ? $vars : array();
            if ($parent) {
                $parentVars = isset($config[$parent]['vars']) ? $config[$parent]['vars'] : [];
                return array_merge($vars, $parentVars);
            }
        }
        return $vars;
    }