eZ\Publish\Core\Persistence\Legacy\Content\UrlAlias\Gateway::removeCustomAlias PHP Method

removeCustomAlias() abstract public method

Deletes single custom alias row matched by composite primary key.
abstract public removeCustomAlias ( mixed $parentId, string $textMD5 ) : boolean
$parentId mixed
$textMD5 string
return boolean
    public abstract function removeCustomAlias($parentId, $textMD5);

Usage Example

 /**
  * Deletes single custom alias row matched by composite primary key.
  *
  * If $id is set only autogenerated entries will be removed.
  *
  * @param mixed $parentId
  * @param string $textMD5
  *
  * @return bool
  */
 public function removeCustomAlias($parentId, $textMD5)
 {
     try {
         return $this->innerGateway->removeCustomAlias($parentId, $textMD5);
     } catch (DBALException $e) {
         throw new \RuntimeException('Database error', 0, $e);
     } catch (PDOException $e) {
         throw new \RuntimeException('Database error', 0, $e);
     }
 }
All Usage Examples Of eZ\Publish\Core\Persistence\Legacy\Content\UrlAlias\Gateway::removeCustomAlias