for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* Copyright © 2016-present Spryker Systems GmbH. All rights reserved.
* Use of this software requires acceptance of the Evaluation License Agreement. See LICENSE file.
*/
namespace SprykerShop\Yves\ChartWidget\Plugin\CmsContentWidgetChartConnector;
use Spryker\Yves\Kernel\Widget\AbstractWidgetPlugin;
use SprykerShop\Yves\CmsContentWidgetChartConnector\Dependency\Plugin\ChartWidget\ChartWidgetPluginInterface;
class ChartWidgetPlugin extends AbstractWidgetPlugin implements ChartWidgetPluginInterface
{
* @param string $chartPluginName
* @param string|null $dataIdentifier
*
* @return void
public function initialize(string $chartPluginName, ?string $dataIdentifier = null): void
$this
->addParameter('chartPluginName', $chartPluginName)
->addParameter('dataIdentifier', $dataIdentifier);
}
* @return string
public static function getName(): string
return static::NAME;
public static function getTemplate(): string
return '@ChartWidget/views/chart/chart.twig';