You are here

public function WebformAttachmentBase::getInfo in Webform 6.x

Same name and namespace in other branches
  1. 8.5 modules/webform_attachment/src/Element/WebformAttachmentBase.php \Drupal\webform_attachment\Element\WebformAttachmentBase::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

4 calls to WebformAttachmentBase::getInfo()
WebformAttachmentToken::getInfo in modules/webform_attachment/src/Element/WebformAttachmentToken.php
Returns the element properties for this element.
WebformAttachmentTwig::getInfo in modules/webform_attachment/src/Element/WebformAttachmentTwig.php
Returns the element properties for this element.
WebformAttachmentUrl::getInfo in modules/webform_attachment/src/Element/WebformAttachmentUrl.php
Returns the element properties for this element.
WebformEntityPrintAttachment::getInfo in modules/webform_entity_print_attachment/src/Element/WebformEntityPrintAttachment.php
Returns the element properties for this element.
4 methods override WebformAttachmentBase::getInfo()
WebformAttachmentToken::getInfo in modules/webform_attachment/src/Element/WebformAttachmentToken.php
Returns the element properties for this element.
WebformAttachmentTwig::getInfo in modules/webform_attachment/src/Element/WebformAttachmentTwig.php
Returns the element properties for this element.
WebformAttachmentUrl::getInfo in modules/webform_attachment/src/Element/WebformAttachmentUrl.php
Returns the element properties for this element.
WebformEntityPrintAttachment::getInfo in modules/webform_entity_print_attachment/src/Element/WebformEntityPrintAttachment.php
Returns the element properties for this element.

File

modules/webform_attachment/src/Element/WebformAttachmentBase.php, line 19

Class

WebformAttachmentBase
Provides a base class for 'webform_attachment' elements.

Namespace

Drupal\webform_attachment\Element

Code

public function getInfo() {
  $class = get_class($this);
  return [
    '#filename' => '',
    '#sanitize' => FALSE,
    '#link_title' => '',
    '#download' => FALSE,
    '#trim' => FALSE,
    '#process' => [
      [
        $class,
        'processWebformAttachment',
      ],
      [
        $class,
        'processAjaxForm',
      ],
    ],
    '#theme_wrappers' => [
      'form_element',
    ],
  ];
}