You are here

public function NetworkBase::__construct in Social API 8

Same name and namespace in other branches
  1. 8.2 src/Plugin/NetworkBase.php \Drupal\social_api\Plugin\NetworkBase::__construct()
  2. 3.x src/Plugin/NetworkBase.php \Drupal\social_api\Plugin\NetworkBase::__construct()

Instantiates a NetworkBase object.

Parameters

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

string $plugin_id: The plugin_id for the plugin instance.

array $plugin_definition: The plugin implementation definition.

EntityTypeManagerInterface $entity_type_manager: The entity type manager.

\Drupal\Core\Config\ConfigFactoryInterface $config_factory: The configuration factory object.

Overrides PluginBase::__construct

File

src/Plugin/NetworkBase.php, line 56

Class

NetworkBase
Base class for Social Network plugins.

Namespace

Drupal\social_api\Plugin

Code

public function __construct(array $configuration, $plugin_id, array $plugin_definition, EntityTypeManagerInterface $entity_type_manager, ConfigFactoryInterface $config_factory) {
  parent::__construct($configuration, $plugin_id, $plugin_definition);
  $this->entityTypeManager = $entity_type_manager;
  $this->configuration = $entity_type_manager;
  $this
    ->init($config_factory);
}