Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
company.phtml
Go to the documentation of this file.
1 <?php
7 // @codingStandardsIgnoreFile
8 
10 ?>
11 <div class="field company <?= $block->isRequired() ? 'required' : '' ?>">
12  <label for="company" class="label">
13  <span>
14  <?= $block->escapeHtml(__('Company')) ?>
15  </span>
16  </label>
17  <div class="control">
18  <?php
19  $_validationClass = $block->escapeHtmlAttr(
20  $this->helper('Magento\Customer\Helper\Address')
21  ->getAttributeValidationClass('company')
22  );
23  ?>
24  <input type="text"
25  name="company"
26  id="company"
27  value="<?= $block->escapeHtmlAttr($block->getCompany()) ?>"
28  title="<?= $block->escapeHtmlAttr(__('Company')) ?>"
29  class="input-text <?= $_validationClass ?: '' ?>"
30  >
31  </div>
32 </div>
$block setTitle( 'CMS Block Title') -> setIdentifier('fixture_block') ->setContent('< h1 >Fixture Block Title</h1 >< a href=" store url</a><p> Config value
Definition: block.php:9
__()
Definition: __.php:13
$block
Definition: block.php:8
$_validationClass
Definition: company.phtml:19