Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
Total | |
0.00% |
0 / 26 |
|
0.00% |
0 / 2 |
CRAP | |
0.00% |
0 / 1 |
LinkTipTree | |
0.00% |
0 / 26 |
|
0.00% |
0 / 2 |
6 | |
0.00% |
0 / 1 |
getTree | |
0.00% |
0 / 25 |
|
0.00% |
0 / 1 |
2 | |||
getTaskTypeId | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 |
1 | <?php |
2 | |
3 | namespace GrowthExperiments\HelpPanel\Tips; |
4 | |
5 | class LinkTipTree extends TipTree { |
6 | |
7 | /** @inheritDoc */ |
8 | public function getTree(): array { |
9 | $steps = [ |
10 | 'value' => [ 'main' => [], 'example' => [] ], |
11 | 'calm' => [ 'main' => [] ], |
12 | 'rules1' => [ 'main' => [], 'example' => [], 'text' => [], ], |
13 | 'step1' => [ |
14 | 'main' => [ $this->getEditMessageTipConfigData() ], |
15 | 'example' => [], |
16 | ], |
17 | 'step2' => [ |
18 | 'main' => [ |
19 | [ |
20 | 'type' => self::TIP_DATA_TYPE_PLAIN_MESSAGE, |
21 | 'data' => 'visualeditor-annotationbutton-link-tooltip', |
22 | ], |
23 | [ |
24 | 'type' => self::TIP_DATA_TYPE_OOUI_ICON, |
25 | 'data' => [ 'icon' => 'link' ] |
26 | ] |
27 | ] |
28 | ], |
29 | 'publish' => [ |
30 | 'main' => [ $this->getPublishMessageTipConfigData() ] |
31 | ], |
32 | ]; |
33 | return $this->maybeAddLearnMoreLinkTipNode( $steps ); |
34 | } |
35 | |
36 | /** @inheritDoc */ |
37 | protected function getTaskTypeId(): string { |
38 | return 'links'; |
39 | } |
40 | } |