Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x

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.

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal