Skip to content

Commit 0e925d9

Browse files
committed
#10925: Add ability to load block and pages by identifiers
1 parent 93f4486 commit 0e925d9

File tree

4 files changed

+4
-14
lines changed

4 files changed

+4
-14
lines changed

app/code/Magento/Cms/Api/GetBlockByIdentifierInterface.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ interface GetBlockByIdentifierInterface
1616
*
1717
* @param string $identifier
1818
* @param int $storeId
19+
* @throws \Magento\Framework\Exception\NoSuchEntityException
1920
* @return \Magento\Cms\Api\Data\BlockInterface
2021
*/
2122
public function execute(string $identifier, int $storeId) : \Magento\Cms\Api\Data\BlockInterface;

app/code/Magento/Cms/Api/GetPageByIdentifierInterface.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ interface GetPageByIdentifierInterface
1616
*
1717
* @param string $identifier
1818
* @param int $storeId
19+
* @throws \Magento\Framework\Exception\NoSuchEntityException
1920
* @return \Magento\Cms\Api\Data\PageInterface
2021
*/
2122
public function execute(string $identifier, int $storeId) : \Magento\Cms\Api\Data\PageInterface;

app/code/Magento/Cms/Model/GetBlockByIdentifier.php

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ class GetBlockByIdentifier implements GetBlockByIdentifierInterface
2525
private $blockResource;
2626

2727
/**
28-
* BlockManagement constructor.
2928
* @param BlockFactory $blockFactory
3029
* @param ResourceModel\Block $blockResource
3130
*/
@@ -38,12 +37,7 @@ public function __construct(
3837
}
3938

4039
/**
41-
* Load block data by given block identifier.
42-
*
43-
* @param string $identifier
44-
* @param int $storeId
45-
* @return BlockInterface
46-
* @throws NoSuchEntityException
40+
* @inheritdoc
4741
*/
4842
public function execute(string $identifier, int $storeId) : BlockInterface
4943
{

app/code/Magento/Cms/Model/GetPageByIdentifier.php

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ class GetPageByIdentifier implements GetPageByIdentifierInterface
2525
private $pageResource;
2626

2727
/**
28-
* PageManagement constructor.
2928
* @param PageFactory $pageFactory
3029
* @param ResourceModel\Page $pageResource
3130
*/
@@ -38,12 +37,7 @@ public function __construct(
3837
}
3938

4039
/**
41-
* Load page data by given page identifier.
42-
*
43-
* @param string $identifier
44-
* @param int $storeId
45-
* @return PageInterface
46-
* @throws NoSuchEntityException
40+
* @inheritdoc
4741
*/
4842
public function execute(string $identifier, int $storeId) : PageInterface
4943
{

0 commit comments

Comments
 (0)