You are here

public function InteractiveUpload::getInfo in Lightning Media 8.2

Same name and namespace in other branches
  1. 8.4 src/Element/InteractiveUpload.php \Drupal\lightning_media\Element\InteractiveUpload::getInfo()
  2. 8 src/Element/InteractiveUpload.php \Drupal\lightning_media\Element\InteractiveUpload::getInfo()
  3. 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\Element

Code

public function getInfo() {
  return [
    '#tree' => TRUE,
    '#input' => TRUE,
    '#title' => NULL,
    '#default_value' => NULL,
    '#process' => [
      [
        static::class,
        'process',
      ],
    ],
    '#upload_location' => 'public://',
    '#upload_validators' => [],
  ];
}