function system_plugin_ui_form

Proxies to the plugin class' form method.

@todo This needs more explanation, an documentation. Also "proxies" is a weird word to use.

See also

or two, and parameter

2 string references to 'system_plugin_ui_form'
BlockPluginUI::form in drupal/core/modules/block/lib/Drupal/block/Plugin/PluginUI/BlockPluginUI.php
Overrides \Drupal\system\Plugin\PluginUIBase::form().
system_forms in drupal/core/modules/system/system.module
Implements hook_forms().

File

drupal/core/modules/system/system.module, line 1064
Configuration system that lets administrators modify the workings of the site.

Code

function system_plugin_ui_form($form, &$form_state, $plugin, $facet = NULL) {
  $plugin_ui = drupal_container()
    ->get('plugin.manager.system.plugin_ui')
    ->createInstance($plugin);
  $form = $plugin_ui
    ->form($form, $form_state, $facet);
  $form['#validate'][] = array(
    $plugin_ui,
    'formValidate',
  );
  $form['#submit'][] = array(
    $plugin_ui,
    'formSubmit',
  );
  return $form;
}