protected function WebformAdminConfigBaseForm::getPluginDefinitions in Webform 8.5
Same name and namespace in other branches
- 6.x src/Form/AdminConfig/WebformAdminConfigBaseForm.php \Drupal\webform\Form\AdminConfig\WebformAdminConfigBaseForm::getPluginDefinitions()
Get plugin definitions.
Parameters
\Drupal\Component\Plugin\PluginManagerInterface $plugin_manager: A webform element, handler, or exporter plugin manager.
Return value
array Plugin definitions.
2 calls to WebformAdminConfigBaseForm::getPluginDefinitions()
- WebformAdminConfigBaseForm::buildExcludedPlugins in src/
Form/ AdminConfig/ WebformAdminConfigBaseForm.php - Build excluded plugins element.
- WebformAdminConfigBaseForm::convertIncludedToExcludedPluginIds in src/
Form/ AdminConfig/ WebformAdminConfigBaseForm.php - Convert included ids returned from table select element to excluded ids.
File
- src/
Form/ AdminConfig/ WebformAdminConfigBaseForm.php, line 224
Class
- WebformAdminConfigBaseForm
- Base webform admin settings form.
Namespace
Drupal\webform\Form\AdminConfigCode
protected function getPluginDefinitions(PluginManagerInterface $plugin_manager) {
$plugins = $plugin_manager
->getDefinitions();
$plugins = $plugin_manager
->getSortedDefinitions($plugins);
if ($plugin_manager instanceof WebformElementManagerInterface) {
unset($plugins['webform_element']);
}
elseif ($plugin_manager instanceof WebformHandlerManager || $plugin_manager instanceof WebformVariantManager) {
unset($plugins['broken']);
}
return $plugins;
}