protected function addAlias($entity, $entity_id, $alias)
    {
        $this->alias->delete(array('entity' => $entity, 'entity_id' => $entity_id));

        $data = array(
            'alias' => $alias,
            'entity' => $entity,
            'entity_id' => $entity_id
        );

        return $this->alias->add($data);
    }
protected function addAlias($entity, $entity_id, $alias)
    {
        $this->alias->delete(array('entity' => $entity, 'entity_id' => $entity_id));

        $data = array(
            'alias' => $alias,
            'entity' => $entity,
            'entity_id' => $entity_id
        );

        return $this->alias->add($data);
    }
protected function addAlias ( $ entity , $ entity_id , $ alias ) { $ this -> alias -> delete ( array ( 'entity' => $ entity , 'entity_id' => $ entity_id ) ) ; $ data = array ( 'alias' => $ alias , 'entity' => $ entity , 'entity_id' => $ entity_id ) ; return $ this -> alias -> add ( $ data ) ; }
Add a URL alias
@param string $entity
@param int $entity_id
@param string $alias
@return int
Add a URL alias