You are here

public function SampleDataLoader::findPluginByDataType in YAML Content 8.2

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

File

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

Class

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

Namespace

Drupal\sample_data

Code

public function findPluginByDataType($data_type) {
  $plugins = $this->pluginManager
    ->getDefinitionsByDataType($data_type);
  if (!empty($plugins)) {
    return $plugins;
  }
}