You are here

public function SharePluginBase::__construct in Share Message 8

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 SharePluginBase::__construct()
SocialSharePrivacy::__construct in src/Plugin/sharemessage/SocialSharePrivacy.php
Constructs Social Share Privacy plugin.
1 method overrides SharePluginBase::__construct()
SocialSharePrivacy::__construct in src/Plugin/sharemessage/SocialSharePrivacy.php
Constructs Social Share Privacy plugin.

File

src/SharePluginBase.php, line 28

Class

SharePluginBase
Default controller class for source plugins.

Namespace

Drupal\sharemessage

Code

public function __construct(array $configuration, $plugin_id, $plugin_definition) {
  parent::__construct($configuration, $plugin_id, $plugin_definition);
  $this->shareMessage = $configuration['sharemessage'];
}