You are here

protected function TooltipManager::getAllFilterCondition in Tooltip Taxonomy 8

Get all tooltip filter conditions.

Return value

array|\Drupal\Core\Entity\EntityInterface[] All filter conditions.

2 calls to TooltipManager::getAllFilterCondition()
TooltipManager::checkPathAndContentType in src/Services/TooltipManager.php
Check the path and content type.
TooltipManager::hasTooltip in src/Services/TooltipManager.php
Check if an vocabulary is used for tooltip.

File

src/Services/TooltipManager.php, line 132

Class

TooltipManager
Tooltip filter condition manager class.

Namespace

Drupal\tooltip_taxonomy\Services

Code

protected function getAllFilterCondition() {

  // Load the next release node.
  $cids = \Drupal::entityQuery('filter_condition')
    ->sort('weight')
    ->execute();
  if (empty($cids)) {
    return [];
  }

  // Load all nodes matched the conditions.
  return $this->entityTypeManager
    ->getStorage('filter_condition')
    ->loadMultiple($cids);
}