public function MentionsPluginManager::getPluginNames in Open Social 8.3
Same name and namespace in other branches
- 8.9 modules/custom/mentions/src/MentionsPluginManager.php \Drupal\mentions\MentionsPluginManager::getPluginNames()
- 8 modules/custom/mentions/src/MentionsPluginManager.php \Drupal\mentions\MentionsPluginManager::getPluginNames()
- 8.2 modules/custom/mentions/src/MentionsPluginManager.php \Drupal\mentions\MentionsPluginManager::getPluginNames()
- 8.4 modules/custom/mentions/src/MentionsPluginManager.php \Drupal\mentions\MentionsPluginManager::getPluginNames()
- 8.5 modules/custom/mentions/src/MentionsPluginManager.php \Drupal\mentions\MentionsPluginManager::getPluginNames()
- 8.6 modules/custom/mentions/src/MentionsPluginManager.php \Drupal\mentions\MentionsPluginManager::getPluginNames()
- 8.7 modules/custom/mentions/src/MentionsPluginManager.php \Drupal\mentions\MentionsPluginManager::getPluginNames()
- 8.8 modules/custom/mentions/src/MentionsPluginManager.php \Drupal\mentions\MentionsPluginManager::getPluginNames()
- 10.3.x modules/custom/mentions/src/MentionsPluginManager.php \Drupal\mentions\MentionsPluginManager::getPluginNames()
- 10.0.x modules/custom/mentions/src/MentionsPluginManager.php \Drupal\mentions\MentionsPluginManager::getPluginNames()
- 10.1.x modules/custom/mentions/src/MentionsPluginManager.php \Drupal\mentions\MentionsPluginManager::getPluginNames()
- 10.2.x modules/custom/mentions/src/MentionsPluginManager.php \Drupal\mentions\MentionsPluginManager::getPluginNames()
Get the names of plugins of type mentions_type.
Return value
array A list of plugin names.
File
- modules/
custom/ mentions/ src/ MentionsPluginManager.php, line 29
Class
- MentionsPluginManager
- MentionsPluginManager for Mentions Type.
Namespace
Drupal\mentionsCode
public function getPluginNames() {
$definitions = $this
->getDefinitions();
$plugin_names = [];
foreach ($definitions as $definition) {
$name = $definition['name']
->getUntranslatedString();
$plugin_names[$definition['id']] = $name;
}
return $plugin_names;
}