You are here

public function FieldFormBase::getFormId in Display Suite 8.4

Same name and namespace in other branches
  1. 8.2 src/Form/FieldFormBase.php \Drupal\ds\Form\FieldFormBase::getFormId()
  2. 8.3 src/Form/FieldFormBase.php \Drupal\ds\Form\FieldFormBase::getFormId()

Returns a unique string identifying the form.

The returned ID should be a unique string that can be a valid PHP function name, since it's used in hook implementation names such as hook_form_FORM_ID_alter().

Return value

string The unique string identifying the form.

Overrides FormInterface::getFormId

4 methods override FieldFormBase::getFormId()
BlockFieldForm::getFormId in src/Form/BlockFieldForm.php
Returns a unique string identifying the form.
CopyFieldForm::getFormId in src/Form/CopyFieldForm.php
Returns a unique string identifying the form.
TokenFieldForm::getFormId in src/Form/TokenFieldForm.php
Returns a unique string identifying the form.
TwigFieldForm::getFormId in src/Form/TwigFieldForm.php
Returns a unique string identifying the form.

File

src/Form/FieldFormBase.php, line 83

Class

FieldFormBase
Base form for fields.

Namespace

Drupal\ds\Form

Code

public function getFormId() {
  return 'ds_custom_field_form';
}