protected function PluginTypeManager::findFiles in Plugin 8.2
Returns an array of file paths, keyed by provider.
Return value
string[]
1 call to PluginTypeManager::findFiles()
- PluginTypeManager::getPluginTypes in src/
PluginType/ PluginTypeManager.php - Gets the known plugin types.
File
- src/
PluginType/ PluginTypeManager.php, line 145
Class
- PluginTypeManager
- Provides a plugin type manager.
Namespace
Drupal\plugin\PluginTypeCode
protected function findFiles() {
$files = [];
foreach ($this->moduleHandler
->getModuleDirectories() as $provider => $directory) {
$file = $directory . '/' . $provider . '.plugin_type.yml';
if (file_exists($file)) {
$files[$provider] = $file;
}
}
return $files;
}