Пример #1
0
 /**
  * Get edit link params string
  *
  * @param \XLite\Model\AEntity $entity Entity
  * @param array                $column Column data
  *
  * @return string
  */
 protected function getEditLinkAttributes(\XLite\Model\AEntity $entity, array $column)
 {
     $params = array();
     $params[] = 'data-id=' . $entity->getId();
     if ($entity->getProductClass()) {
         $params[] = 'data-class-id=' . $entity->getProductClass()->getId();
     }
     return parent::getEditLinkAttributes($entity, $column) . implode(' ', $params);
 }