Updated to Drupal 8.6.4, which is PHP 7.3 friendly. Also updated HTMLaw library....
[yaffs-website] / web / core / lib / Drupal / Core / Render / Element / Submit.php
1 <?php
2
3 namespace Drupal\Core\Render\Element;
4
5 /**
6  * Provides a form submit button.
7  *
8  * Submit buttons are processed the same as regular buttons, except they trigger
9  * the form's submit handler.
10  *
11  * Properties:
12  * - #submit: Specifies an alternate callback for form submission when the
13  *   submit button is pressed.  Use '::methodName' format or an array containing
14  *   the object and method name (for example, [ $this, 'methodName'] ).
15  * - #value: The text to be shown on the button.
16  *
17  * Usage Example:
18  * @code
19  * $form['actions']['submit'] = array(
20  *   '#type' => 'submit',
21  *   '#value' => $this->t('Save'),
22  * );
23  * @endcode
24  *
25  * @see \Drupal\Core\Render\Element\Button
26  *
27  * @FormElement("submit")
28  */
29 class Submit extends Button {
30
31   /**
32    * {@inheritdoc}
33    */
34   public function getInfo() {
35     return [
36       '#executes_submit_callback' => TRUE,
37     ] + parent::getInfo();
38   }
39
40 }