You are here

public function YamlFormManagedFileBase::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/YamlFormManagedFileBase.php, line 51

Class

YamlFormManagedFileBase
Provides a base class form 'managed_file' elements.

Namespace

Drupal\yamlform\Plugin\YamlFormElement

Code

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