You are here

public function SampleDataLoader::loadPlugin in YAML Content 8.2

1 call to SampleDataLoader::loadPlugin()
SampleDataLoader::loadPluginByDataType in modules/sample_data/src/SampleDataLoader.php

File

modules/sample_data/src/SampleDataLoader.php, line 123

Class

SampleDataLoader
Provides methods for retrieving sample data to be used in demo content.

Namespace

Drupal\sample_data

Code

public function loadPlugin($plugin_id, array $configuration = []) {

  // @todo Validate any required contexts or configuration.
  $plugin = $this->pluginManager
    ->createInstance($plugin_id, $configuration);
  return $plugin;
}