Passed
Pull Request — master (#1317)
by
unknown
21:24
created

WidgetRequest   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 2

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
wmc 1
lcom 1
cbo 2
dl 0
loc 14
ccs 0
cts 4
cp 0
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A getArgumentPrefix() 0 5 1
1
<?php
2
namespace ApacheSolrForTypo3\Solr\Widget;
3
4
/*
5
 * This file is part of the TYPO3 CMS project.
6
 *
7
 * It is free software; you can redistribute it and/or modify it under
8
 * the terms of the GNU General Public License, either version 2
9
 * of the License, or any later version.
10
 *
11
 * For the full copyright and license information, please read the
12
 * LICENSE.txt file that was distributed with this source code.
13
 *
14
 * The TYPO3 project - inspiring people to share!
15
 */
16
17
use TYPO3\CMS\Fluid\Core\Widget\WidgetRequest as CoreWidgetRequest;
18
19
/**
20
 * Class WidgetRequest
21
 *
22
 * @author Frans Saris <[email protected]>
23
 * @author Timo Hund <[email protected]>
24
 * @package ApacheSolrForTypo3\Solr\Widget
25
 */
26
class WidgetRequest extends CoreWidgetRequest
27
{
28
29
    /**
30
     * Returns the unique URI namespace for this widget in the format pluginNamespace[widgetIdentifier]
31
     *
32
     * @return string
33
     */
34
    public function getArgumentPrefix()
35
    {
36
        // we skip the [@widget] part
37
        return $this->widgetContext->getParentPluginNamespace();
38
    }
39
}
40