public function AcceptanceMethodPluginManager::getExistingUserPlugins in Entity Legal 8
1 call to AcceptanceMethodPluginManager::getExistingUserPlugins()
- AcceptanceMethodPluginManager::getExistingUserPluginOptions in src/
Plugin/ AcceptanceMethodPluginManager.php - Get existing user plugin option list.
File
- src/
Plugin/ AcceptanceMethodPluginManager.php, line 87 - Contains \Drupal\entity_legal\Plugin\AcceptanceMethodPluginManager.
Class
- AcceptanceMethodPluginManager
- Plugin type manager for acceptance methods.
Namespace
Drupal\entity_legal\PluginCode
public function getExistingUserPlugins() {
$existing_user_plugins = array();
$definitions = $this
->getDefinitions();
foreach ($definitions as $plugin_name => $plugin_definition) {
if (!empty($plugin_definition['existing_users'])) {
$existing_user_plugins[$plugin_name] = $plugin_definition;
}
}
return $existing_user_plugins;
}