public function AcceptanceMethodPluginManager::getNewUserPlugins in Entity Legal 8
Get plugins only related to new users.
Return value
array
1 call to AcceptanceMethodPluginManager::getNewUserPlugins()
- AcceptanceMethodPluginManager::getNewUserPluginOptions in src/
Plugin/ AcceptanceMethodPluginManager.php - Get new user plugin option list.
File
- src/
Plugin/ AcceptanceMethodPluginManager.php, line 60 - Contains \Drupal\entity_legal\Plugin\AcceptanceMethodPluginManager.
Class
- AcceptanceMethodPluginManager
- Plugin type manager for acceptance methods.
Namespace
Drupal\entity_legal\PluginCode
public function getNewUserPlugins() {
$new_user_plugins = array();
$definitions = $this
->getDefinitions();
foreach ($definitions as $plugin_name => $plugin_definition) {
if (!empty($plugin_definition['new_users'])) {
$new_user_plugins[$plugin_name] = $plugin_definition;
}
}
return $new_user_plugins;
}