You are here

public function YamlFormManagedFileBase::hasMultipleValues in YAML Form 8

Checks if element value has multiple values.

Parameters

array $element: An element.

Return value

bool TRUE if element value has multiple values.

Overrides YamlFormElementBase::hasMultipleValues

4 calls to YamlFormManagedFileBase::hasMultipleValues()
YamlFormManagedFileBase::formatHtml in src/Plugin/YamlFormElement/YamlFormManagedFileBase.php
Format an element's value as HTML.
YamlFormManagedFileBase::formatText in src/Plugin/YamlFormElement/YamlFormManagedFileBase.php
Format an element's value as plain text.
YamlFormManagedFileBase::getTestValue in src/Plugin/YamlFormElement/YamlFormManagedFileBase.php
Get test value for an element.
YamlFormManagedFileBase::isMultiline in src/Plugin/YamlFormElement/YamlFormManagedFileBase.php
Checks if element value could contain multiple lines.

File

src/Plugin/YamlFormElement/YamlFormManagedFileBase.php, line 44

Class

YamlFormManagedFileBase
Provides a base class form 'managed_file' elements.

Namespace

Drupal\yamlform\Plugin\YamlFormElement

Code

public function hasMultipleValues(array $element) {
  return !empty($element['#multiple']) ? TRUE : FALSE;
}