commit 6c2f6c2240fd53545aae093ace347547469d051e Author: Joel Pittet Date: Sun May 19 23:16:26 2013 -0700 doc updates diff --git a/core/modules/system/system.module b/core/modules/system/system.module index ea819f3..b3ea764 100644 --- a/core/modules/system/system.module +++ b/core/modules/system/system.module @@ -2683,11 +2683,14 @@ function system_preprocess_block(&$variables) { } /** - * Implements hook_preprocess_HOOK() for system-plugin-ui-form.tpl.php. + * Prepares variables for system plugin UI form templates. * - * The $variables array contains the following arguments: - * - $form - */ + * Default template: system-plugin-ui-form.html.twig. + * + * @param array $variables + * An associative array containing: + * - form: The plugin form elements. +*/ function template_preprocess_system_plugin_ui_form(&$variables) { drupal_add_css(drupal_get_path('module', 'system') . '/system.plugin.ui.css'); } diff --git a/core/modules/system/templates/system-plugin-ui-form.html.twig b/core/modules/system/templates/system-plugin-ui-form.html.twig index 897f869..415a6bf 100644 --- a/core/modules/system/templates/system-plugin-ui-form.html.twig +++ b/core/modules/system/templates/system-plugin-ui-form.html.twig @@ -4,12 +4,12 @@ * Default theme implementation to configure blocks. * * Available variables: - * - form: The form. - * - form.left: Form elements that appear in the left column. - * - form.right: Form elements that appear in the right column. + * - form: The form elements which contains: + * - left: Form elements that appear in the left column. + * - right: Form elements that appear in the right column. * - * @see template_preprocess_block_library_form() - * @see theme_block_library_form() + * @see template_preprocess() + * @see template_preprocess_system_plugin_ui_form() * * @ingroup themeable */ @@ -27,5 +27,5 @@ {% if form -%}
{{ form }}
- {%- endif %} + {%- endif -%}