public function SubscriberCommon::__construct in Acquia Content Hub 8
Public Constructor.
Parameters
\Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager: The Entity Type Manager Service.
\Drupal\acquia_contenthub\ContentHubSearch $search: The Acquia ContentHub Search Service.
\Drupal\acquia_contenthub_subscriber\ESQueryGeneratorInterface $generator: The Query Generator Service.
File
- acquia_contenthub_subscriber/
src/ SubscriberCommon.php, line 62
Class
- SubscriberCommon
- Common methods for subscriber audit.
Namespace
Drupal\acquia_contenthub_subscriberCode
public function __construct(EntityTypeManagerInterface $entity_type_manager, ContentHubSearch $search, ESQueryGeneratorInterface $generator) {
$this->contentHubFilterStorage = $entity_type_manager
->getStorage('contenthub_filter');
$this->search = $search;
$this->generator = $generator;
}