public function display($content, $options = [])
    {
        if (!empty($content)) {
            $videoInfo = $this->_cache($content);
            if (!($videoInfo || empty($options['alwaysRender']))) {
                return 'Video does not exist, it may have been removed from youtube';
            }
            return $this->_renderDisplayView($options, $videoInfo);
        } else {
            return '';
        }
    }
public function display($content, $options = [])
    {
        if (!empty($content)) {
            $videoInfo = $this->_cache($content);
            if (!($videoInfo || empty($options['alwaysRender']))) {
                return 'Video does not exist, it may have been removed from youtube';
            }
            return $this->_renderDisplayView($options, $videoInfo);
        } else {
            return '';
        }
    }
public function display ( $ content , $ options = [ ] ) { if ( ! empty ( $ content ) ) { $ videoInfo = $ this -> _cache ( $ content ) ; if ( ! ( $ videoInfo || empty ( $ options [ 'alwaysRender' ] ) ) ) { return 'Video does not exist, it may have been removed from youtube' ; } return $ this -> _renderDisplayView ( $ options , $ videoInfo ) ; } else { return '' ; } }
Display video using info from youtube API
@param string $content
@param array $options
@return string
Display video using info from youtube API