protected function getYoutubeParameters(ReadBlockInterface $block)
    {
        $urlParams = array();
        foreach (array('youtubeAutoplay', 'youtubeShowinfo', 'youtubeFs', 'youtubeRel', 'youtubeDisablekb', 'youtubeLoop') as $key) {
            if ($block->getAttribute($key) === true) {
                $urlParams[strtolower(substr($key, 7))] = 1;
            }
        }

        if ($block->getAttribute('youtubeControls') === false) {
            $urlParams['controls'] = 0;
        }
        if ($block->getAttribute('youtubeTheme') === true) {
            $urlParams['theme'] = 'light';
        }
        if ($block->getAttribute('youtubeColor') === true) {
            $urlParams['color'] = 'white';
        }
        if ($block->getAttribute('youtubeHl') !== '') {
            $urlParams['hl'] = $block->getAttribute('youtubeHl');
        }

        $url = "//www.youtube.com/embed/" . $block->getAttribute('youtubeVideoId') ."?" . http_build_query($urlParams, '', '&amp;');

        return array(
            'url' => $url,
            'class' => $block->getStyle(),
            'id' => $block->getId(),
            'width' => $block->getAttribute('youtubeWidth'),
            'height' => $block->getAttribute('youtubeHeight')
        );
    }