You are here

public function OptionsBase::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 YamlFormElementBase::isMultiline

File

src/Plugin/YamlFormElement/OptionsBase.php, line 223

Class

OptionsBase
Provides a base 'options' element.

Namespace

Drupal\yamlform\Plugin\YamlFormElement

Code

public function isMultiline(array $element) {
  if ($this
    ->isList($element)) {
    return TRUE;
  }
  else {
    return parent::isMultiline($element);
  }
}