public function SynonymForm::showWordingForm in Synonyms 2.0.x
Helper function which return depends on wording type.
Return value
bool Whether wording forms should be visible or hidden.
3 calls to SynonymForm::showWordingForm()
- SynonymForm::form in src/
Form/ SynonymForm.php - Gets the actual form array to be built.
- SynonymForm::submitForm in src/
Form/ SynonymForm.php - 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…
- SynonymForm::validateForm in src/
Form/ SynonymForm.php - Form validation handler.
File
- src/
Form/ SynonymForm.php, line 266
Class
- SynonymForm
- Entity form for 'synonym' config entity type.
Namespace
Drupal\synonyms\FormCode
public function showWordingForm() {
return \Drupal::config('synonyms.settings')
->get('wording_type') == 'provider';
}