public function TooltipManager::hasTooltip in Tooltip Taxonomy 8
Check if an vocabulary is used for tooltip.
Parameters
string $vid: Vocabulary ID.
Return value
array All conditions' ID in which the Vocabulary is used for tooltip.
File
- src/
Services/ TooltipManager.php, line 258
Class
- TooltipManager
- Tooltip filter condition manager class.
Namespace
Drupal\tooltip_taxonomy\ServicesCode
public function hasTooltip(string $vid) {
$all_cons = $this
->getAllFilterCondition();
$result = [];
foreach ($all_cons as $con) {
if (in_array($vid, $con
->get('vids'))) {
$result[] = $con
->id();
}
}
return $result;
}