You are here

DateFormatAddForm.php in Zircon Profile 8.0

Same filename and directory in other branches
  1. 8 core/modules/system/src/Form/DateFormatAddForm.php

Namespace

Drupal\system\Form

File

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

/**
 * @file
 * Contains \Drupal\system\Form\DateFormatAddForm.
 */
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;
  }

}

Classes

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