Pour tout problème contactez-nous par mail : support@froggit.fr | La FAQ :grey_question: | Rejoignez-nous sur le Chat :speech_balloon:

Skip to content
Snippets Groups Projects
Commit 3d57da44 authored by Nicolas's avatar Nicolas
Browse files

Adjust method

parent a31e2e8d
No related branches found
No related tags found
No related merge requests found
......@@ -13,6 +13,7 @@ use \NicolasBejean\ContentManager\Api\Data\ContentManagerInterface;
use \NicolasBejean\ContentManager\Model\ContentManager;
use \Exception;
use \Magento\Framework\Exception\LocalizedException;
/**
* Class InlineEdit
......@@ -68,6 +69,7 @@ class InlineEdit extends Action
/**
* @return ResultInterface
* @throws LocalizedException
*/
public function execute()
{
......@@ -93,7 +95,7 @@ class InlineEdit extends Action
$this->contentManagerRepository->save($contentManager);
} catch (Exception $e) {
$messages[] = $this->getErrorWithImageId(
$messages[] = $this->getErrorWithId(
$contentManager,
__($e->getMessage())
);
......@@ -116,7 +118,7 @@ class InlineEdit extends Action
* @param string $errorText
* @return string
*/
protected function getErrorWithImageId(ContentManagerInterface $contentManager, $errorText)
protected function getErrorWithId(ContentManagerInterface $contentManager, $errorText)
{
return '[Content Manager ID: ' . $contentManager->getId() . '] ' . $errorText;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment