Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
methods.phtml
Go to the documentation of this file.
1 <?php
7 // @codingStandardsIgnoreFile
8 
9 ?>
10 <?php
12 ?>
13 <?php if (!$block->hasError()): ?>
14 <?php $methods = $block->getMethods('methods') ?: $block->getMethods('top_methods') ?>
15 <ul class="checkout methods items checkout-methods-items">
16 <?php foreach ($methods as $method): ?>
17  <?php $methodHtml = $block->getMethodHtml($method); ?>
18  <?php if (trim($methodHtml) !== ''): ?>
19  <li class="item"><?= /* @escapeNotVerified */ $methodHtml ?></li>
20  <?php endif; ?>
21 <?php endforeach; ?>
22 </ul>
23 <?php endif; ?>
if(trim($methodHtml) !=='') endforeach
Definition: methods.phtml:18
endif
Definition: methods.phtml:23
$block
Definition: block.php:8
$methods
Definition: billing.phtml:71
$method
Definition: info.phtml:13
if(! $block->hasError())( 'methods') ?( 'top_methods') ?>< ul class $methodHtml
Definition: methods.phtml:17