Get config

@param string $identifier Parameter name.
@param null   $default    Default value

@return array|null
178093
public static function get($identifier, $default = null)
    {
        $value = self::getInternal($identifier);

        if (is_null($value)) {
            return $default;
        }

        return $value;
    }
1135544
public function getModifier($identifier)
    {
        $modifiers = $this->getModifiers();
        return isset($modifiers[$identifier]) ? $modifiers[$identifier] : null;
    }
1075363
public function getRole($identifier)
    {
        $role = null;
        try {
            $role = $this->roleService->loadRoleByIdentifier($identifier);
        } catch (ApiExceptions\NotFoundException $e) {
            // Role not found, do nothing, returns null
        }

        return $role;
    }
579499
public function getConfig($key = null, $default = null)
    {

        $configurator = $this->getConfigurator();
        if (null === $key) {
            return $configurator;
        }

        return $configurator->get($key, $default);
    }
535236
public function getMetadataValue($identifier)
    {
        $metadata = $this->getMetadataValues();
        return isset($metadata[$identifier]) ? $metadata[$identifier] : null;
    }
901676
public function get($identifier = null)
    {
        $result = null;

        if (null === $identifier) {
            $result = self::$lookup;
        } elseif ('doozr.registry' === $identifier) {
            $result = $this;
        } else {
            if (true === isset(self::$lookup[$identifier])) {
                $result = self::$references[self::$lookup[$identifier]];
            }
        }

        return $result;
    }
1240069
public function config($key = null, $default = null)
    {
        if ($key === null) {
            return $this->config;
        }

        return Arr::get($this->config, $key, $default);
    }
1240549
protected function getElementValue($identifier)
    {
        $formValue = $this->formState->getFormValue($identifier);
        if ($formValue !== null) {
            return $formValue;
        }
        return $this->formDefinition->getElementDefaultValueByIdentifier($identifier);
    }
1128639
public function getOptionsFor(string $identifier)
    {
        $defaultOptions = $this->config->get('circuit_breaker.defaults');
        $serviceOptionsMap = $this->config->get('circuit_breaker.services');

        if (array_key_exists($identifier, $serviceOptionsMap)) {
            $serviceOptions = array_merge($defaultOptions, $serviceOptionsMap[$identifier]);

            return ServiceOptions::createFromOptions(
                $serviceOptions['attempts_threshold'],
                $serviceOptions['attempts_ttl'],
                $serviceOptions['failure_ttl']
            );
        }

        return ServiceOptions::createFromOptions(
            $defaultOptions['attempts_threshold'],
            $defaultOptions['attempts_ttl'],
            $defaultOptions['failure_ttl']
        );
    }
1132796
public function getContentById($identifier, $default = "", $type = "")
    {
        $index = $this->getRegistryIndex($this->section);

        return $this->getESAdaptor()->getDocument($identifier, $index->getName(), $type);
    }
1115295
public static function get($identifier = 'default')
    {
        if (!array_key_exists($identifier, self::$instances)) {
            self::$instances[$identifier] = static::create();
        }

        return self::$instances[$identifier];
    }
708209
public function getDefinitionByIdentifier($identifier)
    {
        foreach($this->groups as $group) {
            foreach($group->getDefinitions() as $definition) {
                if ($definition->getIdentifier() === $identifier) {
                    return $definition;
                }
            }
        }
        return null;
    }
230119
public function getByIdentifier($identifier)
    {
        switch (APP_NATIVE_LOGIN_USING) {

            case 'EMAIL':
                $user = $this->getByEmail($identifier);
                break;

            case 'USERNAME':
                $user = $this->getByUsername($identifier);
                break;

            default:
                Factory::helper('email');
                if (valid_email($identifier)) {
                    $user = $this->getByEmail($identifier);
                } else {
                    $user = $this->getByUsername($identifier);
                }
                break;
        }

        return $user;
    }
1204510
public function find($identifier)
    {
        $this->stringHelper->validate($identifier);

        foreach ($this->symbols as $symbol) {
            if (in_array($identifier, $symbol->getIdentifiers())) {
                return $symbol;
            }
        }

        return null;
    }
387571
public function retrieveByID($identifier)
	{
		$result = @ldap_read($this->conn, $identifier, '(objectclass=*)', $this->config['attributes']);
		if ($result === FALSE)
			return null;

		$entries = ldap_get_entries($this->conn, $result);
		if ($entries['count'] == 0 || $entries['count'] > 1)
			return null;

		return $this->clean($entries[0]);
	}
770790
public function get($identifier, $default = null)
    {
        $attributes = $this->getData()->attributes;

        $result = $default;
        if(isset($attributes[$identifier])) {
            $result = $attributes[$identifier];
        }

        return $result;
    }
557441
private function get($key, $default = null)
    {
        if ( ! empty($this->config[$key])) {
            return $this->config[$key];
        }

        if (function_exists('config')) {
            if (null !== (config($key))) {
                return config($key);
            }
        }
        
        return $default;
    }