Return setting section by reference.

@param string $name
@return mixed
768861
public function &get($name)
    {
        if (!isset($this->mergedSettings[$name])) {
            $this->mergedSettings[$name] = array();
        }

        $result =& $this->mergedSettings[$name];
        return $result;
    }
84087
public function getConfigValue($section,$name)
    {
        $values=$this->getConfigValues($section);
        if(array_key_exists($name, $values)){
            return $values[$name];
        }
        return null;
    }
15019
public static function settings($name = 'default') {
		if (!empty(self::$_engines[$name])) {
			return self::$_engines[$name]->settings();
		}
		return array();
	}
470289
public function getInjectablePropertyBySetter($name) {
    	$properties = $this->getInjectablePropertiesBySetter();
    	return isset($properties[$name])?$properties[$name]:null;
    }
68812
public function get_setting($name, $default = false) {
        try {
            return $this->controller->get_plan()->get_setting($name);
        } catch (Exception $e) {
            debugging('Failed to find the setting: '.$name, DEBUG_DEVELOPER);
            return $default;
        }
    }
206695
public function getSetting($name, $default = NULL) {
    $setting_name_lookup = array(
      'data_directory'  => 'module_builder_hooks_directory',
      'detail_level'    => 'module_builder_detail',
      'footer'          => 'module_builder_footer',
    );

    if (isset($setting_name_lookup[$name])) {
      return variable_get($setting_name_lookup[$name], $default);
    }
    else {
      return $default;
    }

  }
1114690
public function sectionAction($name)
    {
        $section = $this->getGenerator()->fetch($name);

        if (!$section) {
            throw $this->createNotFoundException();
        }

        $response = Response::create($section->toXml());
        $response->setPublic();
        $response->setClientTtl($this->getTtl());

        return $response;
    }
969050
public function get($section, $key, $default = null)
    {
        $items = $this->getSettingsConfig();

        if (isset($items[$section][$key])) {
            $this->setting = ArrayHelper::getValue($items[$section][$key], 'value');
            $type = ArrayHelper::getValue($items[$section][$key], 'type');
            $this->convertSettingType($type);
        } else {
            $this->setting = $default;
        }

        return $this->setting;
    }
500647
public function getSection($name, $default = null)
    {
        return isset($this->getSections()[$name]) ? $this->getSections()[$name] : $default;
    }
105967
public function findSection($name, Section $parent = null)
    {
        if (is_null($parent)) {
            $parent = $this->getRootSection();
        }

        return $parent->findSection($name);
    }
419672
public function get($name, $default = '') {
        $setting = &$this->settings;
        $names   = explode('.', $name);
        $lname   = array_pop($names);
        if ($names) {
            foreach ($names as $n) {
                if (!isset($setting[ $n ])) {
                    $setting[ $n ] = [];
                }
                $setting = &$setting[ $n ];
            }
        }

        return isset($setting [ $lname ]) ? $setting [ $lname ] : $default;
    }
679890
public function getReference($name)
    {
        if (!$this->hasReference($name)) {
            throw new \OutOfBoundsException("Reference to: ({$name}) does not exist");
        }

        $reference = $this->references[$name];
        $meta = $this->manager->getClassMetadata(get_class($reference));

        if (!$this->manager->contains($reference) && isset($this->identities[$name])) {
            $reference = $this->manager->getReference(
                $meta->name,
                $this->identities[$name]
            );
            $this->references[$name] = $reference; // already in identity map
        }

        return $reference;
    }
1186718
public static function getOrganizationSettings($name = 'all')
    {
        $config = \Drupal::config('site_offices.organization_settings')->get();
        if ($name == 'all') {
            return $config;
        } else {
            if (isset($config[$name])) {
                return $config[$name];
            }            
        }
        return FALSE;
    }
630397
public function section($name, callable $callback = null)
	{
		if($callback){
			$this->sections[$name] = $callback;
		}else{
			return array_key_exists($name, $this->sections) ? $this->sections[$name]($this->data) : null;
		}
	}
78584
static public function getPresets($name = self::FULL)
    {
        if ($presets = ArrayHelper::getValue(self::$presets, $name)) {
            return (array)$presets;
        }

        return [];
    }
669289
public static function getConstantByName($name)
    {
        switch (strtolower($name)) {
            case 'author':
                return self::AUTHOR;
            break;

            case 'candidate':
                return self::CANDIDATE;
            break;

            case 'proctor':
                return self::PROCTOR;
            break;

            case 'scorer':
                return self::SCORER;
            break;

            case 'testconstructor':
                return self::TEST_CONSTRUCTOR;
            break;

            case 'tutor':
                return self::TUTOR;
            break;

            default:
                return false;
            break;
        }
    }
219643
public function getSetter($name)
    {
        if ($this->setters === null) {
            $this->createSetters();
        }
        return isset($this->setters[$name]) ? $this->setters[$name] : null;
    }