Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
NameResolver.php
Go to the documentation of this file.
1 <?php
7 
12 {
19  public function getName($elementConfig)
20  {
21  return $elementConfig['name'];
22  }
23 
30  public function getAlias($elementConfig)
31  {
32  $alias = $this->getName($elementConfig);
33  if (isset($elementConfig['alias'])) {
34  $alias = $elementConfig['alias'];
35  }
36  return $alias;
37  }
38 }
if(!trim($html)) $alias
Definition: details.phtml:20