Пример #1
0
 /**
  * Returns HTML of the object
  *
  * @param \Magento\Framework\Object $row
  * @return string
  */
 public function render(\Magento\Framework\Object $row)
 {
     if ($this->getColumn()->getGrid()->getMassactionIdFieldOnlyIndexValue()) {
         $this->setNoObjectId(true);
     }
     return parent::render($row);
 }
Пример #2
0
 /**
  * Renders grid column
  *
  * @param \Magento\Framework\Object $row
  * @return string
  */
 public function render(\Magento\Framework\Object $row)
 {
     $result = parent::render($row);
     return $result . '<input type="hidden" class="value-json" value="' . htmlspecialchars($this->getAttributesJson($row)) . '" />';
 }