summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLee Rowlands2017-12-30 22:13:45 (GMT)
committerLee Rowlands2017-12-30 22:13:45 (GMT)
commit384a35caf64ffcd872167b7aba5e73c5c1c43a1b (patch)
treeb9db8359897dcfa1112ddb78f5029bf990aa0d2a
parent1872e83be50457bf4c39a4b157a5c90aef756445 (diff)
Issue #2779921 by kiamlaluno, alexpott: hook_field_widget_form_alter() still reference a hook that is not used anymore
-rw-r--r--core/modules/field/field.api.php8
1 files changed, 6 insertions, 2 deletions
diff --git a/core/modules/field/field.api.php b/core/modules/field/field.api.php
index b0899ea..42bdd1e 100644
--- a/core/modules/field/field.api.php
+++ b/core/modules/field/field.api.php
@@ -138,7 +138,8 @@ function hook_field_widget_info_alter(array &$info) {
* Alter forms for field widgets provided by other modules.
*
* @param $element
- * The field widget form element as constructed by hook_field_widget_form().
+ * The field widget form element as constructed by
+ * \Drupal\Core\Field\WidgetBaseInterface::form().
* @param $form_state
* The current state of the form.
* @param $context
@@ -152,6 +153,7 @@ function hook_field_widget_info_alter(array &$info) {
* - default: A boolean indicating whether the form is being shown as a dummy
* form to set default values.
*
+ * @see \Drupal\Core\Field\WidgetBaseInterface::form()
* @see \Drupal\Core\Field\WidgetBase::formSingleElement()
* @see hook_field_widget_WIDGET_TYPE_form_alter()
*/
@@ -172,13 +174,15 @@ function hook_field_widget_form_alter(&$element, \Drupal\Core\Form\FormStateInte
* checking the widget type.
*
* @param $element
- * The field widget form element as constructed by hook_field_widget_form().
+ * The field widget form element as constructed by
+ * \Drupal\Core\Field\WidgetBaseInterface::form().
* @param $form_state
* The current state of the form.
* @param $context
* An associative array. See hook_field_widget_form_alter() for the structure
* and content of the array.
*
+ * @see \Drupal\Core\Field\WidgetBaseInterface::form()
* @see \Drupal\Core\Field\WidgetBase::formSingleElement()
* @see hook_field_widget_form_alter()
*/