You are here

public function YamlFormEntityReferenceTrait::isMultiline in YAML Form 8

4 calls to YamlFormEntityReferenceTrait::isMultiline()
YamlFormEntityReferenceTrait::formatHtml in src/Plugin/YamlFormElement/YamlFormEntityReferenceTrait.php
YamlFormEntityReferenceTrait::formatLinks in src/Plugin/YamlFormElement/YamlFormEntityReferenceTrait.php
Format an entity autocomplete as a link or a list of links.
YamlFormEntityReferenceTrait::formatText in src/Plugin/YamlFormElement/YamlFormEntityReferenceTrait.php
YamlFormEntityReferenceTrait::formatView in src/Plugin/YamlFormElement/YamlFormEntityReferenceTrait.php
Format an entity autocomplete targets using a view mode.

File

src/Plugin/YamlFormElement/YamlFormEntityReferenceTrait.php, line 89

Class

YamlFormEntityReferenceTrait
Provides an 'entity_reference' trait.

Namespace

Drupal\yamlform\Plugin\YamlFormElement

Code

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