*/ namespace Magento\Framework\Data\Form\Element; use Magento\Framework\Escaper; class Gallery extends AbstractElement { /** * @param Factory $factoryElement * @param CollectionFactory $factoryCollection * @param Escaper $escaper * @param array $data */ public function __construct( Factory $factoryElement, CollectionFactory $factoryCollection, Escaper $escaper, $data = [] ) { parent::__construct($factoryElement, $factoryCollection, $escaper, $data); $this->setType('file'); } /** * @return string * @SuppressWarnings(PHPMD.ExcessiveMethodLength) * @SuppressWarnings(PHPMD.UnusedLocalVariable) */ public function getElementHtml() { $gallery = $this->getValue(); $html = '
Big Image | ' . 'Thumbnail | ' . 'Small Thumb | ' . 'Sort Order | ' . 'Delete | ' . '
' . $buttonHtml . ' | '; $html .= '||||
';
$html .= '_getUiId(
'image-' . $image->getValueId()
) .
'>
'; $html .= '_getUiId( 'file' ) . ' > | ';
}
$html .= '' . '_getUiId( 'position-' . $image->getValueId() ) . '/> | '; $html .= '' . '_getUiId( 'delete-button-' . $image->getValueId() ) . '/> | '; $html .= '