Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
Variables
gallery.phtml File Reference

Go to the source code of this file.

Variables

 $elementName = $block->getElement()->getName() . '[images]'
 
 $formName = $block->getFormName()
 
 $element = $block->getElement()
 
 $elementToggleCode = $element->getToggleCode() ? $element->getToggleCode() : 'toggleValueElements(this, this.parentNode.parentNode.parentNode)'
 
 endif = $block->getChildHtml('additional_buttons')
 
foreach( $block->getImageTypes() as $typeData)($typeData[ 'code']) ?>" class endforeach
 

Variable Documentation

◆ $element

$element = $block->getElement()

Definition at line 29 of file gallery.phtml.

◆ $elementName

$elementName = $block->getElement()->getName() . '[images]'

Definition at line 10 of file gallery.phtml.

◆ $elementToggleCode

$elementToggleCode = $element->getToggleCode() ? $element->getToggleCode() : 'toggleValueElements(this, this.parentNode.parentNode.parentNode)'

Definition at line 30 of file gallery.phtml.

◆ $formName

$formName = $block->getFormName()

Definition at line 11 of file gallery.phtml.

◆ endforeach

foreach ($block->getImageTypes() as $typeData) ( $typeData['code'] ) ?>" class endforeach
Initial value:
="item-role item-role-<?= $block->escapeHtml(
$typeData['code']
) ?>">
<?= $block->escapeHtml($typeData['label'])
$block
Definition: block.php:8

Definition at line 187 of file gallery.phtml.

◆ endif

endif = $block->getChildHtml('additional_buttons')

Definition at line 57 of file gallery.phtml.