Version 1
[yaffs-website] / web / core / modules / system / src / Form / DateFormatAddForm.php
diff --git a/web/core/modules/system/src/Form/DateFormatAddForm.php b/web/core/modules/system/src/Form/DateFormatAddForm.php
new file mode 100644 (file)
index 0000000..957f967
--- /dev/null
@@ -0,0 +1,21 @@
+<?php
+
+namespace Drupal\system\Form;
+
+use Drupal\Core\Form\FormStateInterface;
+
+/**
+ * Provides a form for adding a date format.
+ */
+class DateFormatAddForm extends DateFormatFormBase {
+
+  /**
+   * {@inheritdoc}
+   */
+  protected function actions(array $form, FormStateInterface $form_state) {
+    $actions = parent::actions($form, $form_state);
+    $actions['submit']['#value'] = t('Add format');
+    return $actions;
+  }
+
+}