Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
Constant.php
Go to the documentation of this file.
1 <?php
7 
9 
14 {
20  public function evaluate(array $data)
21  {
22  if (!isset($data['value']) || !defined($data['value'])) {
23  throw new \InvalidArgumentException('Constant name is expected.');
24  }
25  return constant($data['value']);
26  }
27 }