You are here

DateFormatAddForm.php in Drupal 10

Namespace

Drupal\system\Form

File

core/modules/system/src/Form/DateFormatAddForm.php
View source
<?php

namespace Drupal\system\Form;

use Drupal\Core\Form\FormStateInterface;

/**
 * Provides a form for adding a date format.
 *
 * @internal
 */
class DateFormatAddForm extends DateFormatFormBase {

  /**
   * {@inheritdoc}
   */
  protected function actions(array $form, FormStateInterface $form_state) {
    $actions = parent::actions($form, $form_state);
    $actions['submit']['#value'] = $this
      ->t('Add format');
    return $actions;
  }

}

Classes

Namesort descending Description
DateFormatAddForm Provides a form for adding a date format.