public function CshsElement::getInfo in Client-side Hierarchical Select 8
Same name and namespace in other branches
- 8.3 src/Element/CshsElement.php \Drupal\cshs\Element\CshsElement::getInfo()
- 8.2 src/Element/CshsElement.php \Drupal\cshs\Element\CshsElement::getInfo()
Returns the element properties for this element.
Return value
array An array of element properties. See \Drupal\Core\Render\ElementInfoManagerInterface::getInfo() for documentation of the standard properties of all elements, and the return value format.
Overrides Select::getInfo
File
- src/
Element/ CshsElement.php, line 25
Class
- CshsElement
- Defines the CSHS element.
Namespace
Drupal\cshs\ElementCode
public function getInfo() : array {
$info = parent::getInfo();
$info['#label'] = '';
$info['#labels'] = [];
$info['#parent'] = 0;
$info['#force_deepest'] = FALSE;
$info['#required_depth'] = 0;
$info['#none_value'] = static::NONE_VALUE;
// phpcs:ignore Drupal.Semantics.FunctionT.NotLiteralString
$info['#none_label'] = $this
->t(static::NONE_LABEL);
$info['#theme'] = static::ID;
$info['#process'][] = [
static::class,
'processElement',
];
$info['#pre_render'][] = [
static::class,
'preRender',
];
$info['#element_validate'][] = [
static::class,
'validateElement',
];
return $info;
}