You are here

public function WSConnectorBase::__construct in Web Service Data 8

Same name and namespace in other branches
  1. 2.0.x src/Plugin/WSConnectorBase.php \Drupal\wsdata\Plugin\WSConnectorBase::__construct()

Constructs a \Drupal\Component\Plugin\PluginBase object.

Parameters

array $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.

Overrides PluginBase::__construct

1 call to WSConnectorBase::__construct()
WSConnectorSimpleHTTP::__construct in src/Plugin/WSConnector/WSConnectorSimpleHTTP.php
Constructs a \Drupal\Component\Plugin\PluginBase object.
1 method overrides WSConnectorBase::__construct()
WSConnectorSimpleHTTP::__construct in src/Plugin/WSConnector/WSConnectorSimpleHTTP.php
Constructs a \Drupal\Component\Plugin\PluginBase object.

File

src/Plugin/WSConnectorBase.php, line 29

Class

WSConnectorBase
Base class for Wsconnector plugin plugins.

Namespace

Drupal\wsdata\Plugin

Code

public function __construct(array $configuration, $plugin_id, $plugin_definition, Token $token) {
  parent::__construct($configuration, $plugin_id, $plugin_definition);
  $this->token = $token;
  $this->expires = 0;
  $this->cacheDefaultTime = 0;
  $this->cacheDefaultOverride = FALSE;
  $this->staleCache = FALSE;
  $this->status = [];
}