You are here

public function WebformElementBase::isInput in Webform 8.5

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

Checks if the element carries a value.

Parameters

array $element: An element.

Return value

bool TRUE if the element carries a value.

Overrides WebformElementInterface::isInput

3 calls to WebformElementBase::isInput()
WebformElementBase::isContainer in src/Plugin/WebformElementBase.php
Checks if the element is a container that can contain elements.
WebformElementBase::prepare in src/Plugin/WebformElementBase.php
Prepare an element to be rendered within a webform.
WebformElementBase::prepareElementValidateCallbacks in src/Plugin/WebformElementBase.php
Prepare an element's validation callbacks.
11 methods override WebformElementBase::isInput()
Captcha::isInput in src/Plugin/WebformElement/Captcha.php
Checks if the element carries a value.
ContainerBase::isInput in src/Plugin/WebformElement/ContainerBase.php
Checks if the element carries a value.
Table::isInput in src/Plugin/WebformElement/Table.php
Checks if the element carries a value.
TextFormat::isInput in src/Plugin/WebformElement/TextFormat.php
Checks if the element carries a value.
VerticalTabs::isInput in src/Plugin/WebformElement/VerticalTabs.php
Checks if the element carries a value.

... See full list

File

src/Plugin/WebformElementBase.php, line 546

Class

WebformElementBase
Provides a base class for a webform element.

Namespace

Drupal\webform\Plugin

Code

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