Ejemplo n.º 1
0
 /**
  * Disable removing special methods
  *
  * @param \XLite\Model\AEntity $entity Shipping method object
  *
  * @return boolean
  */
 protected function isAllowEntityRemove(\XLite\Model\AEntity $entity)
 {
     /** @var \XLite\Model\Shipping\Method $entity */
     return !$entity->getFree() && !$this->isFixedFeeMethod($entity);
 }
Ejemplo n.º 2
0
 /**
  * Disable removing special methods
  *
  * @param \XLite\Model\Shipping\Method $entity Shipping method object
  *
  * @return boolean
  */
 protected function isAllowEntityRemove(\XLite\Model\AEntity $entity)
 {
     return !$entity->getFree() && !$this->isFixedFeeMethod($entity);
 }