You are here

public static function ShareUsageDataPluginBase::create in Open Social 8.6

Same name and namespace in other branches
  1. 8.9 modules/custom/social_lets_connect/modules/social_lets_connect_usage/src/Plugin/ShareUsageDataPluginBase.php \Drupal\social_lets_connect_usage\Plugin\ShareUsageDataPluginBase::create()
  2. 8.5 modules/custom/social_lets_connect/modules/social_lets_connect_usage/src/Plugin/ShareUsageDataPluginBase.php \Drupal\social_lets_connect_usage\Plugin\ShareUsageDataPluginBase::create()
  3. 8.7 modules/custom/social_lets_connect/modules/social_lets_connect_usage/src/Plugin/ShareUsageDataPluginBase.php \Drupal\social_lets_connect_usage\Plugin\ShareUsageDataPluginBase::create()
  4. 8.8 modules/custom/social_lets_connect/modules/social_lets_connect_usage/src/Plugin/ShareUsageDataPluginBase.php \Drupal\social_lets_connect_usage\Plugin\ShareUsageDataPluginBase::create()
  5. 10.3.x modules/custom/social_lets_connect/modules/social_lets_connect_usage/src/Plugin/ShareUsageDataPluginBase.php \Drupal\social_lets_connect_usage\Plugin\ShareUsageDataPluginBase::create()
  6. 10.0.x modules/custom/social_lets_connect/modules/social_lets_connect_usage/src/Plugin/ShareUsageDataPluginBase.php \Drupal\social_lets_connect_usage\Plugin\ShareUsageDataPluginBase::create()
  7. 10.1.x modules/custom/social_lets_connect/modules/social_lets_connect_usage/src/Plugin/ShareUsageDataPluginBase.php \Drupal\social_lets_connect_usage\Plugin\ShareUsageDataPluginBase::create()
  8. 10.2.x modules/custom/social_lets_connect/modules/social_lets_connect_usage/src/Plugin/ShareUsageDataPluginBase.php \Drupal\social_lets_connect_usage\Plugin\ShareUsageDataPluginBase::create()

The create method.

Parameters

\Symfony\Component\DependencyInjection\ContainerInterface $container: Container interface.

array $configuration: An array of configuration.

string $plugin_id: The plugin id.

mixed $plugin_definition: The plugin definition.

Return value

\Drupal\Core\Plugin\ContainerFactoryPluginInterface|\Drupal\social_user_export\Plugin\UserExportPluginBase Returns the UserExportPluginBase.

Overrides ContainerFactoryPluginInterface::create

File

modules/custom/social_lets_connect/modules/social_lets_connect_usage/src/Plugin/ShareUsageDataPluginBase.php, line 69

Class

ShareUsageDataPluginBase
Base class for Share usage data plugin plugins.

Namespace

Drupal\social_lets_connect_usage\Plugin

Code

public static function create(ContainerInterface $container, array $configuration, $plugin_id, $plugin_definition) {
  return new static($configuration, $plugin_id, $plugin_definition, $container
    ->get('entity_type.manager'), $container
    ->get('config.factory'));
}