DateFormatInterface

Provides an interface defining a date format. Hierarchy interface \Drupal\Core\Entity\EntityInterface; interface \Drupal\Core\Config\Entity\ThirdPartySettingsInterfaceinterface \Drupal\Core\Config\Entity\ConfigEntityInterfaceinterface \Drupal\Core\Datetime\DateFormatInterface File core/lib/Drupal/Core/Datetime/DateFormatInterface.php, line 10 Namespace Drupal\Core\Datetime Members Name Modifiers Type Description AccessibleInterface::access public function Checks data v

DateFormatFormBase::__construct

public DateFormatFormBase::__construct(DateFormatterInterface $date_formatter, ConfigEntityStorageInterface $date_format_storage) Constructs a new date format form. Parameters \Drupal\Core\Datetime\DateFormatterInterface $date_formatter: The date service. \Drupal\Core\Config\Entity\ConfigEntityStorageInterface $date_format_storage: The date format storage. File core/modules/system/src/Form/DateFormatFormBase.php, line 40 Class DateFormatFormBase Provides a base form for date formats. Na

DateFormatFormBase::validateForm

public DateFormatFormBase::validateForm(array &$form, FormStateInterface $form_state) Form validation handler. Parameters array $form: An associative array containing the structure of the form. \Drupal\Core\Form\FormStateInterface $form_state: The current state of the form. Overrides FormBase::validateForm File core/modules/system/src/Form/DateFormatFormBase.php, line 124 Class DateFormatFormBase Provides a base form for date formats. Namespace Drupal\system\Form Code public funct

DateFormatFormBase::submitForm

public DateFormatFormBase::submitForm(array &$form, FormStateInterface $form_state) This is the default entity object builder function. It is called before any other submit handler to build the new entity object to be used by the following submit handlers. At this point of the form workflow the entity is validated and the form state can be updated, this way the subsequently invoked handlers can retrieve a regular entity object to act on. Generally this method should not be overridden unles

DateFormatFormBase::save

public DateFormatFormBase::save(array $form, FormStateInterface $form_state) Form submission handler for the 'save' action. Normally this method should be overridden to provide specific messages to the user and redirect the form after the entity has been saved. Parameters array $form: An associative array containing the structure of the form. \Drupal\Core\Form\FormStateInterface $form_state: The current state of the form. Return value int Either SAVED_NEW or SAVED_UPDATED, depending on the op

DateFormatFormBase::form

public DateFormatFormBase::form(array $form, FormStateInterface $form_state) Gets the actual form array to be built. Overrides EntityForm::form See also \Drupal\Core\Entity\EntityForm::processForm() \Drupal\Core\Entity\EntityForm::afterBuild() File core/modules/system/src/Form/DateFormatFormBase.php, line 78 Class DateFormatFormBase Provides a base form for date formats. Namespace Drupal\system\Form Code public function form(array $form, FormStateInterface $form_state) { $form['labe

DateFormatFormBase::exists

public DateFormatFormBase::exists($entity_id, array $element) Checks for an existing date format. Parameters string|int $entity_id: The entity ID. array $element: The form element. Return value bool TRUE if this format already exists, FALSE otherwise. File core/modules/system/src/Form/DateFormatFormBase.php, line 68 Class DateFormatFormBase Provides a base form for date formats. Namespace Drupal\system\Form Code public function exists($entity_id, array $element) { return (bool) $th

DateFormatFormBase::create

public static DateFormatFormBase::create(ContainerInterface $container) Instantiates a new instance of this class. This is a factory method that returns a new instance of this class. The factory should pass any needed dependencies into the constructor of this class, but not the container itself. Every call to this method must return a new instance of this class; that is, it may not implement a singleton. Parameters \Symfony\Component\DependencyInjection\ContainerInterface $container: The servi

DateFormatFormBase::$dateFormatter

The date formatter service. Type: \Drupal\Core\Datetime\DateFormatterInterface File core/modules/system/src/Form/DateFormatFormBase.php, line 23 Class DateFormatFormBase Provides a base form for date formats. Namespace Drupal\system\Form Code protected $dateFormatter;

DateFormatFormBase::$dateFormatStorage

The date format storage. Type: \Drupal\Core\Config\Entity\ConfigEntityStorageInterface File core/modules/system/src/Form/DateFormatFormBase.php, line 30 Class DateFormatFormBase Provides a base form for date formats. Namespace Drupal\system\Form Code protected $dateFormatStorage;