You are here

public function ShareEverywhereField::__construct in Share Everywhere 2.x

Same name and namespace in other branches
  1. 8 src/Plugin/views/field/ShareEverywhereField.php \Drupal\share_everywhere\Plugin\views\field\ShareEverywhereField::__construct()

Constructs a ShareEverywhereField 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.

\Drupal\share_everywhere\ShareEverywhereServiceInterface $share_service: The module manager service.

Overrides HandlerBase::__construct

File

src/Plugin/views/field/ShareEverywhereField.php, line 38

Class

ShareEverywhereField
Field handler to display Share Everywhere buttons.

Namespace

Drupal\share_everywhere\Plugin\views\field

Code

public function __construct(array $configuration, $plugin_id, $plugin_definition, ShareEverywhereServiceInterface $share_service) {
  parent::__construct($configuration, $plugin_id, $plugin_definition);
  $this->shareService = $share_service;
}