public function EntityBrowserElement::getInfo in Entity Browser 8
Same name and namespace in other branches
- 8.2 src/Element/EntityBrowserElement.php \Drupal\entity_browser\Element\EntityBrowserElement::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 ElementInterface::getInfo
File
- src/
Element/ EntityBrowserElement.php, line 83
Class
- EntityBrowserElement
- Provides an Entity Browser form element.
Namespace
Drupal\entity_browser\ElementCode
public function getInfo() {
$class = get_class($this);
return [
'#input' => TRUE,
'#tree' => TRUE,
'#cardinality' => static::CARDINALITY_UNLIMITED,
'#selection_mode' => static::SELECTION_MODE_APPEND,
'#process' => [
[
$class,
'processEntityBrowser',
],
],
'#default_value' => [],
'#entity_browser_validators' => [],
'#widget_context' => [],
'#attached' => [
'library' => [
'entity_browser/common',
],
],
];
}