You are here

public function RefreshInstagramTokenAction::__construct in Instagram Feeds 8

Constructs a RefreshTokenAction object.

Parameters

mixed[] $configuration: A configuration array containing information about the plugin instance.

string $plugin_id: The plugin ID for the plugin instance.

mixed $plugin_definition: The plugin implementation definition.

\Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager: The entity type manager.

\Drupal\Component\Datetime\TimeInterface $time: The time service.

Overrides EntityActionBase::__construct

File

src/Plugin/Action/RefreshInstagramTokenAction.php, line 52

Class

RefreshInstagramTokenAction
Provides an action that can refresh Instagram Token for an entity.

Namespace

Drupal\instagram_feeds\Plugin\Action

Code

public function __construct(array $configuration, $plugin_id, $plugin_definition, EntityTypeManagerInterface $entity_type_manager, TimeInterface $time, ClientInterface $http_client) {
  parent::__construct($configuration, $plugin_id, $plugin_definition, $entity_type_manager);
  $this->time = $time;
  $this->httpClient = $http_client;
}