eZ\Publish\Core\Persistence\Cache\UrlAliasHandler::locationSwapped PHP Method

locationSwapped() public method

See also: eZ\Publish\SPI\Persistence\Content\UrlAlias\Handler::swap
public locationSwapped ( $location1ParentId, $location1Id, $location2ParentId, $location2Id )
    public function locationSwapped($location1ParentId, $location1Id, $location2ParentId, $location2Id)
    {
        $this->logger->logCall(__METHOD__, ['location1ParentId' => $location1ParentId, 'location1Id' => $location1Id, 'location2ParentId' => $location2ParentId, 'location2Id' => $location2Id]);
        $return = $this->persistenceHandler->urlAliasHandler()->locationSwapped($location1ParentId, $location1Id, $location2ParentId, $location2Id);
        $this->clearLocation($location1Id);
        $this->clearLocation($location2Id);
        return $return;
    }