You are here

public function TextFormat::hasCompositeElement in Webform 8.5

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

Check if composite element exists.

Return value

bool TRUE if composite element exists.

File

src/Plugin/WebformElement/TextFormat.php, line 389

Class

TextFormat
Provides a 'text_format' element.

Namespace

Drupal\webform\Plugin\WebformElement

Code

public function hasCompositeElement(array $element, $key) {
  $elements = $this
    ->getCompositeElements();
  return isset($elements[$key]) ? TRUE : FALSE;
}