You are here

public function EntityShareMetatagEnhancer::__construct in Entity Share 8.2

Same name and namespace in other branches
  1. 8.3 src/Plugin/jsonapi/FieldEnhancer/EntityShareMetatagEnhancer.php \Drupal\entity_share\Plugin\jsonapi\FieldEnhancer\EntityShareMetatagEnhancer::__construct()

File

src/Plugin/jsonapi/FieldEnhancer/EntityShareMetatagEnhancer.php, line 44

Class

EntityShareMetatagEnhancer
Prepare metatag value to be able to shared.

Namespace

Drupal\entity_share\Plugin\jsonapi\FieldEnhancer

Code

public function __construct(array $configuration, $plugin_id, array $plugin_definition, MetatagManagerInterface $metatag_manager, Token $token) {
  parent::__construct($configuration, $plugin_id, $plugin_definition);
  $this->metatagManager = $metatag_manager;
  $this->token = $token;
}