You are here

public function FileMetadataCaching::getInfo in File metadata manager 8

Same name and namespace in other branches
  1. 8.2 src/Element/FileMetadataCaching.php \Drupal\file_mdm\Element\FileMetadataCaching::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/FileMetadataCaching.php, line 18

Class

FileMetadataCaching
Implements a form element to enable capturing cache information for file_mdm.

Namespace

Drupal\file_mdm\Element

Code

public function getInfo() {
  $class = get_class($this);
  return [
    '#input' => TRUE,
    '#process' => [
      [
        $class,
        'processCaching',
      ],
    ],
    '#element_validate' => [
      [
        $class,
        'validateCaching',
      ],
    ],
  ];
}