23 lines
674 B
PHP
23 lines
674 B
PHP
<?php
|
|
|
|
namespace Edeclic\Maps\Block\Widget;
|
|
|
|
class Maps extends \Magento\Framework\View\Element\Template implements \Magento\Widget\Block\BlockInterface
|
|
{
|
|
protected $_template = 'widget/maps.phtml';
|
|
|
|
public function __construct(
|
|
\Magento\Framework\View\Element\Template\Context $context
|
|
) {
|
|
parent::__construct($context);
|
|
}
|
|
|
|
public function getMarker()
|
|
{
|
|
$objectManager = \Magento\Framework\App\ObjectManager::getInstance();
|
|
$revendeursModel = $objectManager->get('\FME\GoogleMapsStoreLocator\Model\Storelocator');
|
|
$collection = $revendeursModel->getCollection();
|
|
return $collection;
|
|
}
|
|
|
|
} |