eZ\Publish\Core\Persistence\Legacy\Content\Location\Trash\Handler::recover PHP 메소드

recover() 공개 메소드

Recreates the originally trashed location in the new position. If this is not possible (because the old location does not exist any more), a ParentNotFound exception is thrown. Returns newly restored location Id.
public recover ( mixed $trashedId, mixed $newParentId ) : integer
$trashedId mixed
$newParentId mixed
리턴 integer Newly restored location id
    public function recover($trashedId, $newParentId)
    {
        return $this->locationGateway->untrashLocation($trashedId, $newParentId)->id;
    }