Completed
Push — master ( f62a20...123424 )
by Tim
04:24
created

ImageMenuContentObject::menuTypoLink()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 6
rs 9.4285
cc 1
eloc 4
nc 1
nop 7
1
<?php
2
/**
3
 * ImageMenuContentObject
4
 */
5
6
namespace FRUIT\Popup\Xclass;
7
8
use FRUIT\Popup\Popup;
9
10
/**
11
 * ImageMenuContentObject
12
 */
13
class ImageMenuContentObject extends \TYPO3\CMS\Frontend\ContentObject\Menu\ImageMenuContentObject
14
{
15
    /**
16
     * Calls typolink to create menu item links.
17
     *
18
     * @param array $page Page record (uid points where to link to)
19
     * @param string $oTarget Target frame/window
20
     * @param bool $no_cache TRUE if caching should be disabled
21
     * @param string $script Alternative script name (unused)
22
     * @param array|string $overrideArray Array to override values in $page, empty string to skip override
23
     * @param string $addParams Parameters to add to URL
24
     * @param int|string $typeOverride "type" value, empty string means "not set"
25
     * @return array See linkData
26
     */
27
    public function menuTypoLink($page, $oTarget, $no_cache, $script, $overrideArray = '', $addParams = '', $typeOverride = '')
28
    {
29
        $LD = parent::menuTypoLink($page, $oTarget, $no_cache, $script, $overrideArray, $addParams, $typeOverride);
30
        Popup::makeMenuLink($page, $LD);
31
        return $LD;
32
    }
33
}
34