Passed
Push — master ( 843207...29f725 )
by mark
36:53 queued 19:40
created

getAvailableTemplates()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
nc 1
nop 0
dl 0
loc 4
rs 10
c 0
b 0
f 0
1
<?php
2
3
/**
4
 * Copyright © 2016-present Spryker Systems GmbH. All rights reserved.
5
 * Use of this software requires acceptance of the Evaluation License Agreement. See LICENSE file.
6
 */
7
8
namespace SprykerShop\Shared\CmsContentWidgetChartConnector\ContentWidgetConfigurationProvider;
9
10
use Spryker\Shared\CmsContentWidget\Dependency\CmsContentWidgetConfigurationProviderInterface;
11
12
class CmsChartContentWidgetConfigurationProvider implements CmsContentWidgetConfigurationProviderInterface
13
{
14
    public const FUNCTION_NAME = 'chart';
15
16
    /**
17
     * @return string
18
     */
19
    public function getFunctionName(): string
20
    {
21
        return static::FUNCTION_NAME;
22
    }
23
24
    /**
25
     * @return array
26
     */
27
    public function getAvailableTemplates(): array
28
    {
29
        return [
30
            CmsContentWidgetConfigurationProviderInterface::DEFAULT_TEMPLATE_IDENTIFIER => '@CmsContentWidgetChartConnector/views/cms-chart-content/cms-chart-content.twig',
31
        ];
32
    }
33
34
    /**
35
     * @return string
36
     */
37
    public function getUsageInformation(): string
38
    {
39
        return "{{ chart('plugin-name', 'data-identifier') }}, to use different template {{ chart('plugin-name', 'data-identifier', 'default') }}";
40
    }
41
}
42