Skip to content

Conversation

maartynaa
Copy link
Contributor

No description provided.

MenuFactory $menuFactory,
CollectionFactory $menuCollectionFactory,
MenuSearchResultsInterfaceFactory $menuSearchResults,
MenuInterface $menu,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am not a fan of injecting MenuInterface directly as it is data object - especially in this context where we also have MenuFactory (but this is not true for 2 other instances).
Maybe this should be some kind of helper to provide link fields?

"imageDeleteUrl" : "<?= $block->getImageDeleteUrl() ?>",
"imageUploadFileId": "<?= $block->getImageUploadFileId() ?>",
"lazyMinItemsCount": "1000",
"serializedNodesElementName": "serialized_nodes",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

TODO: pass the correct value from backend (either "serialized_nodes" or "snowmenu_staging_serialized_nodes")

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants