public function YamlFormElementBase::isMultiline in YAML Form 8
Checks if element value could contain multiple lines.
Parameters
array $element: An element.
Return value
bool TRUE if the element value could contain multiple lines.
Overrides YamlFormElementInterface::isMultiline
4 calls to YamlFormElementBase::isMultiline()
- OptionsBase::isMultiline in src/
Plugin/ YamlFormElement/ OptionsBase.php - Checks if element value could contain multiple lines.
- YamlFormElementBase::build in src/
YamlFormElementBase.php - Build an element as text or HTML.
- YamlFormElementBase::getRelatedTypes in src/
YamlFormElementBase.php - Get related element types.
- YamlFormManagedFileBase::isMultiline in src/
Plugin/ YamlFormElement/ YamlFormManagedFileBase.php - Checks if element value could contain multiple lines.
3 methods override YamlFormElementBase::isMultiline()
- OptionsBase::isMultiline in src/
Plugin/ YamlFormElement/ OptionsBase.php - Checks if element value could contain multiple lines.
- YamlFormCompositeBase::isMultiline in src/
Plugin/ YamlFormElement/ YamlFormCompositeBase.php - Checks if element value could contain multiple lines.
- YamlFormManagedFileBase::isMultiline in src/
Plugin/ YamlFormElement/ YamlFormManagedFileBase.php - Checks if element value could contain multiple lines.
File
- src/
YamlFormElementBase.php, line 280
Class
- YamlFormElementBase
- Provides a base class for a form element.
Namespace
Drupal\yamlformCode
public function isMultiline(array $element) {
return $this->pluginDefinition['multiline'];
}