DateFormatAddForm.php

Same filename in other branches
  1. 8.9.x core/modules/system/src/Form/DateFormatAddForm.php
  2. 10 core/modules/system/src/Form/DateFormatAddForm.php
  3. 11.x core/modules/system/src/Form/DateFormatAddForm.php

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

Title Deprecated Summary
DateFormatAddForm Provides a form for adding a date format.

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.