You are here

public function NetworkBase::__construct in Social API 3.x

Same name and namespace in other branches
  1. 8.2 src/Plugin/NetworkBase.php \Drupal\social_api\Plugin\NetworkBase::__construct()
  2. 8 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.

\Drupal\Core\Logger\LoggerChannelFactoryInterface $logger_factory: The logger factory.

\Drupal\Core\Site\Settings $settings: The site settings.

\Drupal\Core\Entity\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 83

Class

NetworkBase
Base class for Social Network plugins.

Namespace

Drupal\social_api\Plugin

Code

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