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 0a4eecc9 authored by Nicolas's avatar Nicolas
Browse files

Modification du nom d'une méthode

parent c2bd3ef0
No related branches found
No related tags found
No related merge requests found
......@@ -134,12 +134,14 @@ class AssignCategories extends Template
}
/**
* Get Selected Item
*
* @param int $id
* @return array
* @throws LocalizedException
* @throws NoSuchEntityException
*/
public function getSlider (int $id)
public function getSelectedItem (int $id)
{
/** @var CategoryWidgetModel $categoryWidget */
$categoryWidget = $this->categoryWidgetRepository->getById($id);
......
......@@ -7,7 +7,7 @@ $collection = $block->getCollection();
if (empty($block->getRequest()->getParams())) {
$slider = array();
} else {
$slider = $block->getSlider($block->getRequest()->getParam('entity_id'));
$slider = $block->getSelectedItem($block->getRequest()->getParam('entity_id'));
}
?>
<div class="categorywidget categorywidget-assign-categories">
......
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