You are here

public function MentionsPluginManager::getPluginNames in Open Social 8

Same name and namespace in other branches
  1. 8.9 modules/custom/mentions/src/MentionsPluginManager.php \Drupal\mentions\MentionsPluginManager::getPluginNames()
  2. 8.2 modules/custom/mentions/src/MentionsPluginManager.php \Drupal\mentions\MentionsPluginManager::getPluginNames()
  3. 8.3 modules/custom/mentions/src/MentionsPluginManager.php \Drupal\mentions\MentionsPluginManager::getPluginNames()
  4. 8.4 modules/custom/mentions/src/MentionsPluginManager.php \Drupal\mentions\MentionsPluginManager::getPluginNames()
  5. 8.5 modules/custom/mentions/src/MentionsPluginManager.php \Drupal\mentions\MentionsPluginManager::getPluginNames()
  6. 8.6 modules/custom/mentions/src/MentionsPluginManager.php \Drupal\mentions\MentionsPluginManager::getPluginNames()
  7. 8.7 modules/custom/mentions/src/MentionsPluginManager.php \Drupal\mentions\MentionsPluginManager::getPluginNames()
  8. 8.8 modules/custom/mentions/src/MentionsPluginManager.php \Drupal\mentions\MentionsPluginManager::getPluginNames()
  9. 10.3.x modules/custom/mentions/src/MentionsPluginManager.php \Drupal\mentions\MentionsPluginManager::getPluginNames()
  10. 10.0.x modules/custom/mentions/src/MentionsPluginManager.php \Drupal\mentions\MentionsPluginManager::getPluginNames()
  11. 10.1.x modules/custom/mentions/src/MentionsPluginManager.php \Drupal\mentions\MentionsPluginManager::getPluginNames()
  12. 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\mentions

Code

public function getPluginNames() {
  $definitions = $this
    ->getDefinitions();
  $plugin_names = [];
  foreach ($definitions as $definition) {
    $name = $definition['name']
      ->getUntranslatedString();
    $plugin_names[$definition['id']] = $name;
  }
  return $plugin_names;
}