mirror of
https://github.com/bdnugget/magento2.git
synced 2026-11-07 09:17:35 +00:00
24 lines
612 B
PHP
24 lines
612 B
PHP
<?php
|
|
/**
|
|
* Copyright © Magento, Inc. All rights reserved.
|
|
* See COPYING.txt for license details.
|
|
*/
|
|
namespace Magento\Rule\Block;
|
|
|
|
use Magento\Framework\Data\Form\Element\AbstractElement;
|
|
|
|
class Conditions implements \Magento\Framework\Data\Form\Element\Renderer\RendererInterface
|
|
{
|
|
/**
|
|
* @param AbstractElement $element
|
|
* @return string
|
|
*/
|
|
public function render(AbstractElement $element)
|
|
{
|
|
if ($element->getRule() && $element->getRule()->getConditions()) {
|
|
return $element->getRule()->getConditions()->asHtmlRecursive();
|
|
}
|
|
return '';
|
|
}
|
|
}
|