public function YamlFormElementBase::isEnabled in YAML Form 8
Checks if element is enabled.
Return value
bool TRUE if the element is enabled.
Overrides YamlFormElementInterface::isEnabled
3 calls to YamlFormElementBase::isEnabled()
- YamlFormElementBase::isDisabled in src/
YamlFormElementBase.php - Checks if element is disabled.
- YamlFormManagedFileBase::displayDisabledWarning in src/
Plugin/ YamlFormElement/ YamlFormManagedFileBase.php - Display element disabled warning.
- YamlFormManagedFileBase::isEnabled in src/
Plugin/ YamlFormElement/ YamlFormManagedFileBase.php - Checks if element is enabled.
1 method overrides YamlFormElementBase::isEnabled()
- YamlFormManagedFileBase::isEnabled in src/
Plugin/ YamlFormElement/ YamlFormManagedFileBase.php - Checks if element is enabled.
File
- src/
YamlFormElementBase.php, line 308
Class
- YamlFormElementBase
- Provides a base class for a form element.
Namespace
Drupal\yamlformCode
public function isEnabled() {
return \Drupal::config('yamlform.settings')
->get('elements.excluded_types.' . $this->pluginDefinition['id']) ? FALSE : TRUE;
}