protected function extractParameters(DOMElement $embed, $tagName)
    {
        if (!$viewType = $embed->getAttribute('view')) {
            $viewType = $this->tagDefaultViewMap[$tagName];
        }

        $class = $embed->getAttribute('ezxhtml:class');
        $align = $embed->getAttribute('ezxhtml:align');
        $linkParameters = $this->extractLinkParameters($embed);
        $configuration = $this->extractConfiguration($embed);

        // Setting template parameters only if not empty
        $parameters = array(
            'viewType' => $viewType,
        );

        if (!empty($class)) {
            $parameters['class'] = $class;
        }

        if (!empty($align)) {
            $parameters['align'] = $align;
        }

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

        if (!empty($configuration)) {
            $parameters['config'] = $configuration;
        }

        return $parameters;
    }
protected function extractParameters(DOMElement $embed, $tagName)
    {
        if (!$viewType = $embed->getAttribute('view')) {
            $viewType = $this->tagDefaultViewMap[$tagName];
        }

        $class = $embed->getAttribute('ezxhtml:class');
        $align = $embed->getAttribute('ezxhtml:align');
        $linkParameters = $this->extractLinkParameters($embed);
        $configuration = $this->extractConfiguration($embed);

        // Setting template parameters only if not empty
        $parameters = array(
            'viewType' => $viewType,
        );

        if (!empty($class)) {
            $parameters['class'] = $class;
        }

        if (!empty($align)) {
            $parameters['align'] = $align;
        }

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

        if (!empty($configuration)) {
            $parameters['config'] = $configuration;
        }

        return $parameters;
    }
protected function extractParameters ( DOMElement $ embed , $ tagName ) { if ( ! $ viewType = $ embed -> getAttribute ( 'view' ) ) { $ viewType = $ this -> tagDefaultViewMap [ $ tagName ] ; } $ class = $ embed -> getAttribute ( 'ezxhtml:class' ) ; $ align = $ embed -> getAttribute ( 'ezxhtml:align' ) ; $ linkParameters = $ this -> extractLinkParameters ( $ embed ) ; $ configuration = $ this -> extractConfiguration ( $ embed ) ; // Setting template parameters only if not empty $ parameters = array ( 'viewType' => $ viewType , ) ; if ( ! empty ( $ class ) ) { $ parameters [ 'class' ] = $ class ; } if ( ! empty ( $ align ) ) { $ parameters [ 'align' ] = $ align ; } if ( ! empty ( $ linkParameters ) ) { $ parameters [ 'link' ] = $ linkParameters ; } if ( ! empty ( $ configuration ) ) { $ parameters [ 'config' ] = $ configuration ; } return $ parameters ; }
Extracts parameters from embed element.

@param \DOMElement $embed
@param $tagName string name of the tag to extract

@return array
Extracts parameters from embed element .