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 3e6bb4b commit ab2be56Copy full SHA for ab2be56
app/code/Magento/Cms/Block/BlockByIdentifier.php
@@ -19,8 +19,6 @@
19
20
/**
21
* This class is replacement of \Magento\Cms\Block\Block, that accepts only `string` identifier of CMS Block
22
- *
23
- * @method getIdentifier(): int Returns the value of `identifier` injected in `<block>` definition
24
*/
25
class BlockByIdentifier extends AbstractBlock implements IdentityInterface
26
{
@@ -80,6 +78,16 @@ protected function _toHtml(): string
80
78
}
81
79
82
+ /**
+ * Returns the value of `identifier` injected in `<block>` definition
83
+ *
84
+ * @return string|null
85
+ */
86
+ private function getIdentifier(): ?string
87
+ {
88
+ return $this->getdata('identifier') ?: null;
89
+ }
90
+
91
92
* Filters the Content
93
*
0 commit comments