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

cleanupAfterPublish() abstract public method

If language mask of the found entry is composite (meaning it consists of multiple language ids) given $languageId will be removed from mask. Otherwise entry will be marked as history.
abstract public cleanupAfterPublish ( string $action, mixed $languageId, mixed $newId, mixed $parentId, string $textMD5 )
$action string
$languageId mixed
$newId mixed
$parentId mixed
$textMD5 string
    public abstract function cleanupAfterPublish($action, $languageId, $newId, $parentId, $textMD5);

Usage Example

 /**
  * Downgrades autogenerated entry matched by given $action and $languageId and negatively matched by
  * composite primary key.
  *
  * If language mask of the found entry is composite (meaning it consists of multiple language ids) given
  * $languageId will be removed from mask. Otherwise entry will be marked as history.
  *
  * @param string $action
  * @param mixed $languageId
  * @param mixed $newId
  * @param mixed $parentId
  * @param string $textMD5
  */
 public function cleanupAfterPublish($action, $languageId, $newId, $parentId, $textMD5)
 {
     try {
         $this->innerGateway->cleanupAfterPublish($action, $languageId, $newId, $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::cleanupAfterPublish