Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
Conditions.php
Go to the documentation of this file.
1 <?php
6 namespace Magento\Rule\Block;
7 
9 
10 class Conditions implements \Magento\Framework\Data\Form\Element\Renderer\RendererInterface
11 {
16  public function render(AbstractElement $element)
17  {
18  if ($element->getRule() && $element->getRule()->getConditions()) {
19  return $element->getRule()->getConditions()->asHtmlRecursive();
20  }
21  return '';
22  }
23 }
render(AbstractElement $element)
Definition: Conditions.php:16
$element
Definition: element.phtml:12