@param string $name
@param string $option

@return string
420466
private function getPackageConfig($name, $option = '')
    {
        // specific location
        if ($option && ($config = $this->getPackageOptionFile($option))) {
            return $config;
        }

        $finder = Finder::create()
            ->files()
            ->in($this->getPackageDir())
            ->path('/\/Resources\/config\/([^\/]+\/)*'.$name.'.(yml|xml)$/')
            ->name('/^'.$name.'.(yml|xml)$/');

        // ignor configs in test
        if (stripos($this->getPackage()->getName(), 'test') === false) {
            $finder->notPath('/test/i');
        }

        /* @var $file \SplFileInfo */
        foreach ($finder as $file) {
            $path = str_replace(DIRECTORY_SEPARATOR, '/', $file->getPathname());

            return substr($path, strrpos($path, '/Resources/config/'));
        }

        return '';
    }
821789
public function option($name, $value) {
		$this->validateName($name);
		return $this->merge([$name => $value]);
	}
1164448
protected function getFieldId($name, array $options = [])
    {
        if (Arr::has($options, 'field.id')) {
            return Arr::get($options, 'field.id');
        }

        return 'field-' . str_replace('_', '-', $name);
    }
823856
protected function addKey($name, $option)
    {

        $option['checksum']  = $this->generateNewChecksum($option['value']);
        unset($option['value']);
        $this->keyMap[$name] = $option;
    }
119633
private function getOption(array $options, $name, $default = null, callable $type = null)
    {
        if (array_key_exists($name, $options)) {
            $result = $options[$name];
        } else {
            $result = $default;
        }
        if ($type && !call_user_func($type, $result)) {
            throw new InvalidArgumentException(
                "The provided option for {$name}: " . print_r($result, true) . " is invalid"
            );
        }

        return $result;
    }
1092675
protected function prepareOption($name)
    {
        if (!empty($this->$name) && is_string($this->$name)) {
            return $this->$name;
        }
        return !empty($this->bootstrapDefaults[$name]) ? $this->bootstrapDefaults[$name] : '';
    }
315727
private static function getStringForOptions($name, $options, $expressions = [])
    {
        $newOption = $name;
        foreach ($expressions as $key => $value) {
            $expressions[$key] = '['.$value.']';
        }
        $options = array_merge($options, $expressions);
        ksort($options);
        foreach ($options as $k => $v) {
            if (false === $v) {
                $v = 'false';
            } elseif (true === $v) {
                $v = 'true';
            }
            $newOption .= "-$k-$v";
        }

        return $newOption;
    }
1285946
public function make(Name $name, array $options): string
    {
        $options = (new Map($options))->filter(function ($key, $value) {
            return !$value->isExceptional();
        });

        return $this->url($name, $options);
    }
826850
public function optionFilename($name)
    {
        $name = str_replace('.php', '', $name);
        $this->optionFilename = prepare_filename($name) . '.php';

        $this->optionPath = empty($this->optionPath) ? modules()->top()->getRealPath() : $this->optionPath;
    }
378949
public function dropdown($name, $options = [], $atributes = null)
    {
        $ret = '<select name="'.$name.'" '.(($attributes !== null) ? $this->attributes($attributes) : "").'>';
        foreach ($variable as $key => $value) {
            if (is_array($value)) {
                $ret .= '<option value="'.$key.'" '.((isset($value["attributes"])) ? $this->atributes($value["attributes"]) : "").'>'.$this->getValue($key, $value["value"]).'</option>';
            } else {
                $ret .= '<option value="'.$key.'">'.$this->getValue($key, $value).'</option>';
            }
        }
        $ret .= "</select>";
        return $ret;
    }
798243
public static function getOptions(string $name): array
    {
        if (isset(self::$options) && is_array(self::$options))
            return self::$options[$name];
        return [];
    }
692166
public function tag($name, Array $options = array(), $content = null, $open = false)
    {
        if (!$name) {
            return '';
        }
        $htmlOptions = '';
        foreach ($options as $key => $value) {
            $htmlOptions .= ' ' . $key . '="' . \htmlspecialchars($value, \ENT_COMPAT) . '"';
        }
        if ($content !== null) {
            return '<' . $name . $htmlOptions . '>' . $content . '</' . $name . '>';
        } else {
            return '<' . $name . $htmlOptions . (($open) ? '>' : ' />');
        }
    }
1280807
public function getOption(string $name, $default = null)
    {
        if (!$this->hasOption($name)) {
            return $default;
        }

        return $this->_options[$name];
    }
795354
protected static function getOption($name, $default = null)
    {
        return isset(self::$options[$name]) ? self::$options[$name] : $default;
    }
519198
public function getOption($name)
    {
        if (isset($this->options[$name])) {
            return $this->options[$name];
        }
        return false;
    }
1189311
public function get(string $name)
	{
		if (empty($this->optionValues)) {
			$this->loadOptionValues();
		}
		return $this->optionValues[$name];
	}
615008
public function getAttributes($name, $options = null)
    {
        $attributes = '';

        if (!is_array($options[$name])) {
            return $attributes;
        }

        foreach ($options[$name] as $key => $value) {
            if ($key !== 'tag' && $key !== 'value') {
                $value = is_callable($value) ? $value($options[$name], $options) : $value;
                $attributes .= !empty($value) ? ' ' . $key . '="' . $value . '"' : '';
            }
        }

        return $attributes;
    }