Skip to content

Commit

Permalink
[FEATURE] Add possibility to use moint point in InternalRequest
Browse files Browse the repository at this point in the history
  • Loading branch information
ohader committed Aug 20, 2018
1 parent 5228876 commit bb21d12
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions Classes/Core/Functional/Framework/Frontend/InternalRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,19 @@ public function withPageId(int $pageId): InternalRequest
return $this->withQueryParameter('id', $pageId);
}

/**
* @param int $targetPageId Page the mount points to
* @param int $sourePageId Page the mount is defined at
* @return InternalRequest
*/
public function withMountPoint(int $targetPageId, int $sourePageId): InternalRequest
{
return $this->withQueryParameter(
'MP',
sprintf('%d-%d', $targetPageId, $sourePageId)
);
}

/**
* @param int $languageId
* @return InternalRequest
Expand All @@ -81,6 +94,8 @@ public function withLanguageId(int $languageId): InternalRequest
}

/**
* Adds or overrides parameter on existing query.
*
* @param string $parameterName
* @param null|int|float|string $value
* @return InternalRequest
Expand Down

0 comments on commit bb21d12

Please sign in to comment.