You are here

public function WebformElementBase::supportsMultipleValues in Webform 8.5

Same name and namespace in other branches
  1. 6.x src/Plugin/WebformElementBase.php \Drupal\webform\Plugin\WebformElementBase::supportsMultipleValues()

Checks if the element supports multiple values.

Return value

bool TRUE if the element supports multiple values.

Overrides WebformElementInterface::supportsMultipleValues

3 calls to WebformElementBase::supportsMultipleValues()
OptionsBase::form in src/Plugin/WebformElement/OptionsBase.php
Gets the actual configuration webform array to be built.
WebformCompositeBase::prepareMultipleWrapper in src/Plugin/WebformElement/WebformCompositeBase.php
Set multiple element wrapper.
WebformElementBase::buildConfigurationForm in src/Plugin/WebformElementBase.php
Form constructor.
8 methods override WebformElementBase::supportsMultipleValues()
Checkboxes::supportsMultipleValues in src/Plugin/WebformElement/Checkboxes.php
Checks if the element supports multiple values.
EntityAutocomplete::supportsMultipleValues in src/Plugin/WebformElement/EntityAutocomplete.php
Checks if the element supports multiple values.
Select::supportsMultipleValues in src/Plugin/WebformElement/Select.php
Checks if the element supports multiple values.
TableSelect::supportsMultipleValues in src/Plugin/WebformElement/TableSelect.php
Checks if the element supports multiple values.
WebformManagedFileBase::supportsMultipleValues in src/Plugin/WebformElement/WebformManagedFileBase.php
Checks if the element supports multiple values.

... See full list

File

src/Plugin/WebformElementBase.php, line 581

Class

WebformElementBase
Provides a base class for a webform element.

Namespace

Drupal\webform\Plugin

Code

public function supportsMultipleValues() {
  return $this
    ->hasProperty('multiple');
}