protected function resolveValue(array $config, string $hash)
    {
        if (! isset($config['uses'])) {
            return $config['default'] ?? null;
        }

        if (! \is_array($config['uses'])) {
            return $this->getValue($this->getContent(), $config['uses'], $hash);
        }

        $values = [];

        foreach ($config['uses'] as $use) {
            $values[] = $this->getValue($this->getContent(), $use, $hash);
        }

        return $values;
    }
protected function resolveValue(array $config, string $hash)
    {
        if (! isset($config['uses'])) {
            return $config['default'] ?? null;
        }

        if (! \is_array($config['uses'])) {
            return $this->getValue($this->getContent(), $config['uses'], $hash);
        }

        $values = [];

        foreach ($config['uses'] as $use) {
            $values[] = $this->getValue($this->getContent(), $use, $hash);
        }

        return $values;
    }
protected function resolveValue ( array $ config , string $ hash ) { if ( ! isset ( $ config [ 'uses' ] ) ) { return $ config [ 'default' ] ?? null ; } if ( ! \ is_array ( $ config [ 'uses' ] ) ) { return $ this -> getValue ( $ this -> getContent ( ) , $ config [ 'uses' ] , $ hash ) ; } $ values = [ ] ; foreach ( $ config [ 'uses' ] as $ use ) { $ values [ ] = $ this -> getValue ( $ this -> getContent ( ) , $ use , $ hash ) ; } return $ values ; }
Resolve value from content.

@param  array   $config
@param  string  $hash

@return mixed
Resolve value from content .