We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5f3a2eb commit 56b10a1Copy full SHA for 56b10a1
app/code/Magento/Cms/Block/BlockByIdentifier.php
@@ -111,9 +111,7 @@ private function filterOutput(string $content): string
111
private function getCmsBlock(): BlockInterface
112
{
113
if (!$this->getIdentifier()) {
114
- throw new NoSuchEntityException(
115
- __('Expected value of `identifier` was not provided')
116
- );
+ throw new \InvalidArgumentException('Expected value of `identifier` was not provided');
117
}
118
119
if (null === $this->cmsBlock) {
0 commit comments