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

remove() abstract public method

If $id is set only autogenerated entries will be removed.
abstract public remove ( string $action, mixed | null $id = null )
$action string
$id mixed | null
    public abstract function remove($action, $id = null);

Usage Example

 /**
  * Deletes all rows with given $action and optionally $id.
  *
  * If $id is set only autogenerated entries will be removed.
  *
  * @param string $action
  * @param mixed|null $id
  */
 public function remove($action, $id = null)
 {
     try {
         $this->innerGateway->remove($action, $id);
     } 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::remove