src/View/Helper/Traits/MaterializeCssTrait.php 1 location
|
@@ 102-113 (lines=12) @@
|
99 |
|
* @param string $tooltip |
100 |
|
* @return array |
101 |
|
*/ |
102 |
|
protected function _tooltipTitle(array $options, $tooltip) |
103 |
|
{ |
104 |
|
if ($tooltip === true && !Arr::key('title', $options)) { |
105 |
|
$options['title'] = strip_tags($options['label']); |
106 |
|
} |
107 |
|
|
108 |
|
if (is_string($tooltip)) { |
109 |
|
$options['title'] = $tooltip; |
110 |
|
} |
111 |
|
|
112 |
|
return $options; |
113 |
|
} |
114 |
|
} |
115 |
|
|
src/View/Helper/Traits/HelperTrait.php 1 location
|
@@ 246-257 (lines=12) @@
|
243 |
|
* @param array $options |
244 |
|
* @return array |
245 |
|
*/ |
246 |
|
protected function _setTooltipTitle($tooltip, array $options = []) |
247 |
|
{ |
248 |
|
if ($tooltip === true && !Arr::key('title', $options)) { |
249 |
|
$options['title'] = strip_tags($options['label']); |
250 |
|
} |
251 |
|
|
252 |
|
if (is_string($tooltip)) { |
253 |
|
$options['title'] = $tooltip; |
254 |
|
} |
255 |
|
|
256 |
|
return $options; |
257 |
|
} |
258 |
|
} |
259 |
|
|