summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlex Pott2018-06-13 08:18:21 (GMT)
committerAlex Pott2018-06-13 08:18:21 (GMT)
commit284b4202bac0db6c79026747f6bdbb1e8337e7d3 (patch)
treeedc21cc68d8376a77a0a30fb517cc0b2406f4433
parent7896891da5465644110e5d7fb42d7392710fd9a7 (diff)
Issue #2772251 by msankhala, markpavlitski, joachim: description for EntityForm::actions() could use rewording
-rw-r--r--core/lib/Drupal/Core/Entity/EntityForm.php11
1 files changed, 11 insertions, 0 deletions
diff --git a/core/lib/Drupal/Core/Entity/EntityForm.php b/core/lib/Drupal/Core/Entity/EntityForm.php
index 25b837b..7965028 100644
--- a/core/lib/Drupal/Core/Entity/EntityForm.php
+++ b/core/lib/Drupal/Core/Entity/EntityForm.php
@@ -221,6 +221,17 @@ class EntityForm extends FormBase implements EntityFormInterface {
/**
* Returns an array of supported actions for the current entity form.
*
+ * This function generates a list of Form API elements which represent
+ * actions supported by the current entity form.
+ *
+ * @param array $form
+ * An associative array containing the structure of the form.
+ * @param \Drupal\Core\Form\FormStateInterface $form_state
+ * The current state of the form.
+ *
+ * @return array
+ * An array of supported Form API action elements keyed by name.
+ *
* @todo Consider introducing a 'preview' action here, since it is used by
* many entity types.
*/