Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
Purchases.php
Go to the documentation of this file.
1 <?php
7 
13 class Purchases extends \Magento\Backend\Block\Widget\Grid\Column\Renderer\AbstractRenderer
14 {
21  public function render(\Magento\Framework\DataObject $row)
22  {
23  if (($value = $row->getData($this->getColumn()->getIndex())) > 0) {
24  return $value;
25  }
26  return __('Unlimited');
27  }
28 }
__()
Definition: __.php:13
$value
Definition: gender.phtml:16