You are here

public function WebformEntityTrait::getInfo in Webform 6.x

Same name and namespace in other branches
  1. 8.5 src/Element/WebformEntityTrait.php \Drupal\webform\Element\WebformEntityTrait::getInfo()

File

src/Element/WebformEntityTrait.php, line 16

Class

WebformEntityTrait
Trait for entity reference elements.

Namespace

Drupal\webform\Element

Code

public function getInfo() {
  $info = parent::getInfo();
  $info['#target_type'] = NULL;
  $info['#selection_handler'] = 'default';
  $info['#selection_settings'] = [];
  return $info;
}