public function RefreshInstagramTokenAction::execute in Instagram Feeds 8
Executes the plugin.
Overrides ExecutableInterface::execute
File
- src/
Plugin/ Action/ RefreshInstagramTokenAction.php, line 82
Class
- RefreshInstagramTokenAction
- Provides an action that can refresh Instagram Token for an entity.
Namespace
Drupal\instagram_feeds\Plugin\ActionCode
public function execute($entity = NULL) {
/** @var \Drupal\instagram_feeds\Entity\InstagramAccountInterface $entity */
$entity
->refreshToken($this->httpClient, TRUE);
}