You are here

public function WebformSubmissionInformation::getInfo in Webform 8.5

Same name and namespace in other branches
  1. 6.x src/Element/WebformSubmissionInformation.php \Drupal\webform\Element\WebformSubmissionInformation::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/WebformSubmissionInformation.php, line 17

Class

WebformSubmissionInformation
Provides a render element to display webform submission information.

Namespace

Drupal\webform\Element

Code

public function getInfo() {
  $class = get_class($this);
  return [
    '#theme' => 'webform_submission_information',
    '#webform_submission' => NULL,
    '#source_entity' => NULL,
    '#pre_render' => [
      [
        $class,
        'preRenderWebformSubmissionInformation',
      ],
    ],
    '#theme_wrappers' => [
      'details',
    ],
    '#summary_attributes' => [],
  ];
}