WebformTermCheckboxes.php in Webform 8.5
File
src/Plugin/WebformElement/WebformTermCheckboxes.php
View source
<?php
namespace Drupal\webform\Plugin\WebformElement;
use Drupal\webform\Element\WebformTermCheckboxes as TermCheckboxesElement;
use Drupal\webform\Plugin\WebformElementEntityReferenceInterface;
class WebformTermCheckboxes extends Checkboxes implements WebformElementEntityReferenceInterface {
use WebformTermReferenceTrait;
protected function defineDefaultProperties() {
$properties = [
'vocabulary' => '',
'breadcrumb' => FALSE,
'breadcrumb_delimiter' => ' › ',
'tree_delimiter' => ' ',
'scroll' => TRUE,
'depth' => NULL,
] + parent::defineDefaultProperties();
unset($properties['options'], $properties['options_randomize'], $properties['options_display']);
return $properties;
}
protected function getElementSelectorInputsOptions(array $element) {
static::setOptions($element);
return parent::getElementSelectorInputsOptions($element);
}
protected function setOptions(array &$element) {
TermCheckboxesElement::setOptions($element);
}
}