You are here

public function WebformTermsOfService::getInfo in Webform 8.5

Same name and namespace in other branches
  1. 6.x src/Element/WebformTermsOfService.php \Drupal\webform\Element\WebformTermsOfService::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 Checkbox::getInfo

File

src/Element/WebformTermsOfService.php, line 32

Class

WebformTermsOfService
Provides a webform terms of service element.

Namespace

Drupal\webform\Element

Code

public function getInfo() {
  return [
    '#return_value' => TRUE,
    '#terms_type' => static::TERMS_MODAL,
    '#terms_title' => '',
    '#terms_content' => '',
  ] + parent::getInfo();
}