You are here

public function MetatagManager::__construct in Metatag 8

Constructor for MetatagManager.

Parameters

\Drupal\metatag\MetatagGroupPluginManager $groupPluginManager: The MetatagGroupPluginManager object.

\Drupal\metatag\MetatagTagPluginManager $tagPluginManager: The MetatagTagPluginMπanager object.

\Drupal\metatag\MetatagToken $token: The MetatagToken object.

\Drupal\Core\Logger\LoggerChannelFactoryInterface $channelFactory: The LoggerChannelFactoryInterface object.

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

File

src/MetatagManager.php, line 79

Class

MetatagManager
Class MetatagManager.

Namespace

Drupal\metatag

Code

public function __construct(MetatagGroupPluginManager $groupPluginManager, MetatagTagPluginManager $tagPluginManager, MetatagToken $token, LoggerChannelFactoryInterface $channelFactory, EntityTypeManagerInterface $entityTypeManager) {
  $this->groupPluginManager = $groupPluginManager;
  $this->tagPluginManager = $tagPluginManager;
  $this->tokenService = $token;
  $this->logger = $channelFactory
    ->get('metatag');
  $this->metatagDefaults = $entityTypeManager
    ->getStorage('metatag_defaults');
}