public function BehaviorForm::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.
1 call to BehaviorForm::showWordingForm()
- BehaviorForm::buildForm in src/
Form/ BehaviorForm.php - Form constructor.
File
- src/
Form/ BehaviorForm.php, line 252
Class
- BehaviorForm
- The behavior form for given entity type.
Namespace
Drupal\synonyms\FormCode
public function showWordingForm() {
$wording_type = \Drupal::config('synonyms.settings')
->get('wording_type');
return $wording_type == 'entity' || $wording_type == 'provider';
}