DateFormatFormBase

Provides a base form for date formats. Hierarchy class \Drupal\Core\Form\FormBase implements ContainerInjectionInterface, FormInterface uses DependencySerializationTrait, LoggerChannelTrait, LinkGeneratorTrait, RedirectDestinationTrait, UrlGeneratorTrait, StringTranslationTraitclass \Drupal\Core\Entity\EntityForm implements EntityFormInterfaceclass \Drupal\system\Form\DateFormatFormBase File core/modules/system/src/Form/DateFormatFormBase.php, line 16 Namespace Drupal\system\Form Mem

DateFormatEditForm::form

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

DateFormatEditForm::actions

protected DateFormatEditForm::actions(array $form, FormStateInterface $form_state) Returns an array of supported actions for the current entity form. @todo Consider introducing a 'preview' action here, since it is used by many entity types. Overrides EntityForm::actions File core/modules/system/src/Form/DateFormatEditForm.php, line 28 Class DateFormatEditForm Provides a form for editing a date format. Namespace Drupal\system\Form Code protected function actions(array $form, FormStateIn

DateFormatEditForm

Provides a form for editing a date format. Hierarchy class \Drupal\Core\Form\FormBase implements ContainerInjectionInterface, FormInterface uses DependencySerializationTrait, LoggerChannelTrait, LinkGeneratorTrait, RedirectDestinationTrait, UrlGeneratorTrait, StringTranslationTraitclass \Drupal\Core\Entity\EntityForm implements EntityFormInterfaceclass \Drupal\system\Form\DateFormatFormBaseclass \Drupal\system\Form\DateFormatEditForm File core/modules/system/src/Form/DateFormatEditForm.ph

DateFormatDeleteForm::__construct

public DateFormatDeleteForm::__construct(DateFormatterInterface $date_formatter) Constructs an DateFormatDeleteForm object. Parameters \Drupal\Core\Datetime\DateFormatterInterface $date_formatter: The date formatter service. File core/modules/system/src/Form/DateFormatDeleteForm.php, line 27 Class DateFormatDeleteForm Builds a form to delete a date format. Namespace Drupal\system\Form Code public function __construct(DateFormatterInterface $date_formatter) { $this->dateFormatter

DateFormatDeleteForm::getQuestion

public DateFormatDeleteForm::getQuestion() Returns the question to ask the user. Return value string The form question. The page title will be set to this value. Overrides EntityDeleteFormTrait::getQuestion File core/modules/system/src/Form/DateFormatDeleteForm.php, line 43 Class DateFormatDeleteForm Builds a form to delete a date format. Namespace Drupal\system\Form Code public function getQuestion() { return t('Are you sure you want to delete the format %name : %format?', array(

DateFormatDeleteForm::create

public static DateFormatDeleteForm::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 ser

DateFormatDeleteForm::$dateFormatter

The date formatter service. Type: \Drupal\Core\Datetime\DateFormatterInterface File core/modules/system/src/Form/DateFormatDeleteForm.php, line 19 Class DateFormatDeleteForm Builds a form to delete a date format. Namespace Drupal\system\Form Code protected $dateFormatter;

DateFormatDeleteForm

Builds a form to delete a date format. Hierarchy class \Drupal\Core\Form\FormBase implements ContainerInjectionInterface, FormInterface uses DependencySerializationTrait, LoggerChannelTrait, LinkGeneratorTrait, RedirectDestinationTrait, UrlGeneratorTrait, StringTranslationTraitclass \Drupal\Core\Entity\EntityForm implements EntityFormInterfaceclass \Drupal\Core\Entity\EntityConfirmFormBase implements ConfirmFormInterfaceclass \Drupal\Core\Entity\EntityDeleteForm uses EntityDeleteFormTraitclass

DateFormatAccessControlHandler::checkAccess

protected DateFormatAccessControlHandler::checkAccess(EntityInterface $entity, $operation, AccountInterface $account) Performs access checks. This method is supposed to be overwritten by extending classes that do their own custom access checking. Parameters \Drupal\Core\Entity\EntityInterface $entity: The entity for which to check access. string $operation: The entity operation. Usually one of 'view', 'view label', 'update' or 'delete'. \Drupal\Core\Session\AccountInterface $account: The user