You are here

public function SimpleAccessGroups::getInfo in Simple Access 8.3

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/SimpleAccessGroups.php, line 21

Class

SimpleAccessGroups
Simple access groups element.

Namespace

Drupal\simple_access\Element

Code

public function getInfo() {
  $class_name = get_class($this);
  $element = [
    'wrapper' => [
      '#input' => FALSE,
    ],
    '#default_value' => [],
    '#tree' => TRUE,
    '#process' => [
      [
        $class_name,
        'processSimpleAccessGroups',
      ],
    ],
    '#pre_render' => [
      [
        $class_name,
        'preRenderSimpleAccessGroups',
      ],
    ],
    '#override_privilege' => FALSE,
    '#node_type' => '',
  ];
  return $element;
}