public function InteractiveUpload::getInfo in Lightning Media 8
Same name and namespace in other branches
- 8.4 src/Element/InteractiveUpload.php \Drupal\lightning_media\Element\InteractiveUpload::getInfo()
- 8.2 src/Element/InteractiveUpload.php \Drupal\lightning_media\Element\InteractiveUpload::getInfo()
- 8.3 src/Element/InteractiveUpload.php \Drupal\lightning_media\Element\InteractiveUpload::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/ InteractiveUpload.php, line 20
Class
- InteractiveUpload
- A form element for uploading or deleting files interactively.
Namespace
Drupal\lightning_media\ElementCode
public function getInfo() {
return [
'#tree' => TRUE,
'#input' => TRUE,
'#title' => NULL,
'#default_value' => NULL,
'#process' => [
[
static::class,
'process',
],
],
'#upload_location' => 'public://',
'#upload_validators' => [],
];
}