You are here

public function TooltipManager::__construct in Tooltip Taxonomy 8

Constructs an TooltipConditionManager object.

Parameters

\Drupal\Component\Plugin\Factory\FactoryInterface $plugin_factory: Plugin factory instance.

\Drupal\tooltip_taxonomy\Services\FieldTypeManager $field_type_manager: Field type service instance.

\Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager: The entityTypeManager.

\Drupal\Core\Render\RendererInterface $renderer: Render service instance.

File

src/Services/TooltipManager.php, line 73

Class

TooltipManager
Tooltip filter condition manager class.

Namespace

Drupal\tooltip_taxonomy\Services

Code

public function __construct(FactoryInterface $plugin_factory, FieldTypeManager $field_type_manager, EntityTypeManagerInterface $entity_type_manager, RendererInterface $renderer) {
  $this->pathCondition = $plugin_factory
    ->createInstance('request_path');
  $this->contentTypeCondition = $plugin_factory
    ->createInstance('node_type');
  $this->fieldTypeManager = $field_type_manager;
  $this->entityTypeManager = $entity_type_manager;
  $this->renderer = $renderer;
}