protected function getParameters(DOMElement $embed)
    {
        $parameters = [
            'noLayout' => true,
            'objectParameters' => [],
        ];

        $linkParameters = $this->getLinkParameters($embed);

        if ($linkParameters !== null) {
            $parameters['linkParameters'] = $linkParameters;
        }

        foreach ($embed->attributes as $attribute) {
            // We only consider tags in the custom namespace, and skip disallowed names
            if (
                !isset($this->excludedAttributes[$attribute->localName])
                && $attribute->localName !== 'url'
                && strpos($attribute->localName, EmbedLinking::TEMP_PREFIX) !== 0
            ) {
                $parameters['objectParameters'][$attribute->localName] = $attribute->nodeValue;
            }
        }

        return $parameters;
    }
protected function getParameters(DOMElement $embed)
    {
        $parameters = [
            'noLayout' => true,
            'objectParameters' => [],
        ];

        $linkParameters = $this->getLinkParameters($embed);

        if ($linkParameters !== null) {
            $parameters['linkParameters'] = $linkParameters;
        }

        foreach ($embed->attributes as $attribute) {
            // We only consider tags in the custom namespace, and skip disallowed names
            if (
                !isset($this->excludedAttributes[$attribute->localName])
                && $attribute->localName !== 'url'
                && strpos($attribute->localName, EmbedLinking::TEMP_PREFIX) !== 0
            ) {
                $parameters['objectParameters'][$attribute->localName] = $attribute->nodeValue;
            }
        }

        return $parameters;
    }
protected function getParameters ( DOMElement $ embed ) { $ parameters = [ 'noLayout' => true , 'objectParameters' => [ ] , ] ; $ linkParameters = $ this -> getLinkParameters ( $ embed ) ; if ( $ linkParameters !== null ) { $ parameters [ 'linkParameters' ] = $ linkParameters ; } foreach ( $ embed -> attributes as $ attribute ) { // We only consider tags in the custom namespace, and skip disallowed names if ( ! isset ( $ this -> excludedAttributes [ $ attribute -> localName ] ) && $ attribute -> localName !== 'url' && strpos ( $ attribute -> localName , EmbedLinking :: TEMP_PREFIX ) !== 0 ) { $ parameters [ 'objectParameters' ] [ $ attribute -> localName ] = $ attribute -> nodeValue ; } } return $ parameters ; }
Returns embed's parameters.

@param \DOMElement $embed

@return array
Returns embed s parameters .