You are here

public function EntityconnectSubmit::getInfo in Entity connect 8.2

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 Submit::getInfo

File

src/Element/EntityconnectSubmit.php, line 45

Class

EntityconnectSubmit
Provides a custom form submit button for entityconnect.

Namespace

Drupal\entityconnect\Element

Code

public function getInfo() {
  $class = get_class($this);
  return [
    '#key' => '',
    '#field' => '',
    '#entity_type_target' => 'node',
    '#acceptable_types' => [],
    '#add_child' => FALSE,
    '#validate' => [
      [
        $class,
        'validateSubmit',
      ],
    ],
    '#submit' => [
      [
        $class,
        'addEditButtonSubmit',
      ],
    ],
    '#weight' => 1,
    '#limit_validation_errors' => [],
  ] + parent::getInfo();
}