src/View/Helper/Traits/HelperTrait.php 1 location
|
@@ 219-230 (lines=12) @@
|
| 216 |
|
* @param array $options |
| 217 |
|
* @return array |
| 218 |
|
*/ |
| 219 |
|
protected function _setTooltipTitle($tooltip, array $options = []) |
| 220 |
|
{ |
| 221 |
|
if ($tooltip === true && !Arr::key('title', $options)) { |
| 222 |
|
$options['title'] = strip_tags($options['label']); |
| 223 |
|
} |
| 224 |
|
|
| 225 |
|
if (is_string($tooltip)) { |
| 226 |
|
$options['title'] = $tooltip; |
| 227 |
|
} |
| 228 |
|
|
| 229 |
|
return $options; |
| 230 |
|
} |
| 231 |
|
} |
| 232 |
|
|
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 |
|
|