Skip to content

Commit ec63fc4

Browse files
committed
MC-3305: Architectural Review for MC-1416
1 parent cae10b9 commit ec63fc4

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

app/code/Magento/PageBuilder/Model/Config/ContentType/AdditionalData/Provider/Wysiwyg/Config.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ public function getData(string $itemName) : array
6161
{
6262
$config = [];
6363
$activeEditorPath = $this->activeEditor->getWysiwygAdapterPath();
64-
if ($this->inlineEditingChecker->isAvailable($activeEditorPath)) {
64+
if ($this->inlineEditingChecker->isSupported($activeEditorPath)) {
6565
$config['adapter'] = $this->wysiwygConfig->getConfig()->getData();
6666
if (isset($this->additionalConfig[$activeEditorPath])) {
6767
$config['additional'] = $this->additionalConfig[$activeEditorPath];

app/code/Magento/PageBuilder/Model/Stage/Config.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,6 +203,6 @@ private function isWysiwygProvisionedForEditingOnStage()
203203
{
204204
$activeEditorPath = $this->activeEditor->getWysiwygAdapterPath();
205205

206-
return $this->inlineEditingChecker->isAvailable($activeEditorPath);
206+
return $this->inlineEditingChecker->isSupported($activeEditorPath);
207207
}
208208
}

app/code/Magento/PageBuilder/Model/Wysiwyg/InlineEditingSupportedAdapterList.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ public function __construct(
4141
* @param string $editorPath
4242
* @return bool
4343
*/
44-
public function isAvailable(string $editorPath) : bool
44+
public function isSupported(string $editorPath) : bool
4545
{
4646

4747
return $this->wysiwygAdaptersSupportingInlineEditing[$editorPath] && $this->wysiwygConfig->isEnabled() ?? false;

0 commit comments

Comments
 (0)