You are here

public function ExportAllEnrolments::getPluginConfiguration in Open Social 8.5

Same name and namespace in other branches
  1. 8.9 modules/social_features/social_event/modules/social_event_an_enroll_enrolments_export/src/Plugin/Action/ExportAllEnrolments.php \Drupal\social_event_an_enroll_enrolments_export\Plugin\Action\ExportAllEnrolments::getPluginConfiguration()
  2. 8.6 modules/social_features/social_event/modules/social_event_an_enroll_enrolments_export/src/Plugin/Action/ExportAllEnrolments.php \Drupal\social_event_an_enroll_enrolments_export\Plugin\Action\ExportAllEnrolments::getPluginConfiguration()
  3. 8.7 modules/social_features/social_event/modules/social_event_an_enroll_enrolments_export/src/Plugin/Action/ExportAllEnrolments.php \Drupal\social_event_an_enroll_enrolments_export\Plugin\Action\ExportAllEnrolments::getPluginConfiguration()
  4. 8.8 modules/social_features/social_event/modules/social_event_an_enroll_enrolments_export/src/Plugin/Action/ExportAllEnrolments.php \Drupal\social_event_an_enroll_enrolments_export\Plugin\Action\ExportAllEnrolments::getPluginConfiguration()
  5. 10.3.x modules/social_features/social_event/modules/social_event_an_enroll_enrolments_export/src/Plugin/Action/ExportAllEnrolments.php \Drupal\social_event_an_enroll_enrolments_export\Plugin\Action\ExportAllEnrolments::getPluginConfiguration()
  6. 10.0.x modules/social_features/social_event/modules/social_event_an_enroll_enrolments_export/src/Plugin/Action/ExportAllEnrolments.php \Drupal\social_event_an_enroll_enrolments_export\Plugin\Action\ExportAllEnrolments::getPluginConfiguration()
  7. 10.1.x modules/social_features/social_event/modules/social_event_an_enroll_enrolments_export/src/Plugin/Action/ExportAllEnrolments.php \Drupal\social_event_an_enroll_enrolments_export\Plugin\Action\ExportAllEnrolments::getPluginConfiguration()
  8. 10.2.x modules/social_features/social_event/modules/social_event_an_enroll_enrolments_export/src/Plugin/Action/ExportAllEnrolments.php \Drupal\social_event_an_enroll_enrolments_export\Plugin\Action\ExportAllEnrolments::getPluginConfiguration()

Gets export plugin's configuration.

Parameters

int $plugin_id: The plugin ID.

int $entity_id: The position of an entity in the entities list.

Return value

array An array of export plugin's configuration.

Overrides ExportUser::getPluginConfiguration

File

modules/social_features/social_event/modules/social_event_an_enroll_enrolments_export/src/Plugin/Action/ExportAllEnrolments.php, line 123

Class

ExportAllEnrolments
Exports a event enrollment accounts to CSV.

Namespace

Drupal\social_event_an_enroll_enrolments_export\Plugin\Action

Code

public function getPluginConfiguration($plugin_id, $entity_id) {
  $configuration = parent::getPluginConfiguration($plugin_id, $entity_id);
  $plugin_definition =& $this->pluginDefinitions[$plugin_id];
  if ($plugin_definition['provider'] === 'social_event_an_enroll_enrolments_export') {
    $configuration['entity'] = $this->entities[$entity_id];
  }
  return $configuration;
}