You are here

public function YamlFormElementBase::isInput in YAML Form 8

Checks if the element carries a value.

Parameters

array $element: An element.

Return value

bool TRUE if the element carries a value.

Overrides YamlFormElementInterface::isInput

1 call to YamlFormElementBase::isInput()
YamlFormElementBase::isContainer in src/YamlFormElementBase.php
Checks if element is a container that can contain elements.
5 methods override YamlFormElementBase::isInput()
Captcha::isInput in src/Plugin/YamlFormElement/Captcha.php
Checks if the element carries a value.
ContainerBase::isInput in src/Plugin/YamlFormElement/ContainerBase.php
Checks if the element carries a value.
Table::isInput in src/Plugin/YamlFormElement/Table.php
Checks if the element carries a value.
TextFormat::isInput in src/Plugin/YamlFormElement/TextFormat.php
Checks if the element carries a value.
YamlFormMarkupBase::isInput in src/Plugin/YamlFormElement/YamlFormMarkupBase.php
Checks if the element carries a value.

File

src/YamlFormElementBase.php, line 252

Class

YamlFormElementBase
Provides a base class for a form element.

Namespace

Drupal\yamlform

Code

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