public function TextFormat::hasCompositeElement in Webform 6.x
Same name and namespace in other branches
- 8.5 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\WebformElementCode
public function hasCompositeElement(array $element, $key) {
$elements = $this
->getCompositeElements();
return isset($elements[$key]) ? TRUE : FALSE;
}