You are here

protected function YamlFormUiElementDeleteForm::getElementTitle in YAML Form 8

Get the form element's title or key.

Return value

string The form element's title or key,

3 calls to YamlFormUiElementDeleteForm::getElementTitle()
YamlFormUiElementDeleteForm::getDescription in modules/yamlform_ui/src/Form/YamlFormUiElementDeleteForm.php
Returns additional text to display as a description.
YamlFormUiElementDeleteForm::getQuestion in modules/yamlform_ui/src/Form/YamlFormUiElementDeleteForm.php
Returns the question to ask the user.
YamlFormUiElementDeleteForm::submitForm in modules/yamlform_ui/src/Form/YamlFormUiElementDeleteForm.php
Form submission handler.

File

modules/yamlform_ui/src/Form/YamlFormUiElementDeleteForm.php, line 219

Class

YamlFormUiElementDeleteForm
Form for deleting a form element.

Namespace

Drupal\yamlform_ui\Form

Code

protected function getElementTitle() {
  return !empty($this->element['#title']) ? $this->element['#title'] : $this->key;
}