public function EntityManager::__construct in Acquia Content Hub 8
Constructs an EntityManager object.
Parameters
\Drupal\Core\Logger\LoggerChannelFactoryInterface $logger_factory: The logger factory.
\Drupal\Core\Config\ConfigFactoryInterface $config_factory: The config factory.
\Drupal\acquia_contenthub\Client\ClientManagerInterface $client_manager: The client manager.
\Drupal\acquia_contenthub\ContentHubEntitiesTracking $acquia_contenthub_entities_tracking: The Content Hub Entities Tracking.
\Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager: The Entity Type Manager.
\Drupal\Core\Entity\EntityTypeBundleInfoInterface $entity_type_bundle_info_manager: The Entity Type Bundle Info Manager.
File
- src/
EntityManager.php, line 125
Class
- EntityManager
- Provides a service for managing entity actions for Content Hub.
Namespace
Drupal\acquia_contenthubCode
public function __construct(LoggerChannelFactoryInterface $logger_factory, ConfigFactoryInterface $config_factory, ClientManagerInterface $client_manager, ContentHubEntitiesTracking $acquia_contenthub_entities_tracking, EntityTypeManagerInterface $entity_type_manager, EntityTypeBundleInfoInterface $entity_type_bundle_info_manager) {
$this->baseRoot = isset($GLOBALS['base_root']) ? $GLOBALS['base_root'] : '';
$this->loggerFactory = $logger_factory;
$this->clientManager = $client_manager;
$this->contentHubEntitiesTracking = $acquia_contenthub_entities_tracking;
$this->entityTypeManager = $entity_type_manager;
$this->entityTypeBundleInfoManager = $entity_type_bundle_info_manager;
// Get the content hub config settings.
$this->config = $config_factory
->get('acquia_contenthub.admin_settings');
}