protected function renderInstance(ElementInterface $element)
    {
        $value = $this->getElementValue($element);

        foreach ($this->classMap as $class => $pluginName) {
            if ($value instanceof $class) {
                return $this->renderHelper($pluginName, $value, $element);
            }
        }

        return;
    }
protected function renderInstance(ElementInterface $element)
    {
        $value = $this->getElementValue($element);

        foreach ($this->classMap as $class => $pluginName) {
            if ($value instanceof $class) {
                return $this->renderHelper($pluginName, $value, $element);
            }
        }

        return;
    }
protected function renderInstance ( ElementInterface $ element ) { $ value = $ this -> getElementValue ( $ element ) ; foreach ( $ this -> classMap as $ class => $ pluginName ) { if ( $ value instanceof $ class ) { return $ this -> renderHelper ( $ pluginName , $ value , $ element ) ; } } return ; }
Render element by instance map

@param ElementInterface $element
@return string|null
Render element by instance map