core-bundle/src/Picker/Picker.php
public function getCurrentUrl(): ?string
    {
        foreach ($this->providers as $provider) {
            if ($provider->supportsValue($this->config)) {
                return $provider->getUrl($this->config);
            }
        }

        $menu = $this->getMenu();

        if (!$menu->count()) {
            throw new \RuntimeException('No picker menu items found');
        }

        return $menu->getFirstChild()->getUri();
    }
public function getCurrentUrl(): ?string
    {
        foreach ($this->providers as $provider) {
            if ($provider->supportsValue($this->config)) {
                return $provider->getUrl($this->config);
            }
        }

        $menu = $this->getMenu();

        if (!$menu->count()) {
            throw new \RuntimeException('No picker menu items found');
        }

        return $menu->getFirstChild()->getUri();
    }
public function getCurrentUrl ( ) : ? string { foreach ( $ this -> providers as $ provider ) { if ( $ provider -> supportsValue ( $ this -> config ) ) { return $ provider -> getUrl ( $ this -> config ) ; } } $ menu = $ this -> getMenu ( ) ; if ( ! $ menu -> count ( ) ) { throw new \ RuntimeException ( 'No picker menu items found' ) ; } return $ menu -> getFirstChild ( ) -> getUri ( ) ; }
{@inheritdoc}
{