You are here

public function WebformElementAlterEvent::getElementType in Hook Event Dispatcher 8

Same name and namespace in other branches
  1. 8.2 modules/webform_event_dispatcher/src/Event/WebformElement/WebformElementAlterEvent.php \Drupal\webform_event_dispatcher\Event\WebformElement\WebformElementAlterEvent::getElementType()
  2. 3.x modules/webform_event_dispatcher/src/Event/WebformElement/WebformElementAlterEvent.php \Drupal\webform_event_dispatcher\Event\WebformElement\WebformElementAlterEvent::getElementType()

Get the webform element type.

Return value

string The webform element type.

1 call to WebformElementAlterEvent::getElementType()
WebformElementTypeAlterEvent::getDispatcherType in modules/webform_event_dispatcher/src/Event/WebformElement/WebformElementTypeAlterEvent.php
Get the dispatcher type.

File

modules/webform_event_dispatcher/src/Event/WebformElement/WebformElementAlterEvent.php, line 71

Class

WebformElementAlterEvent
Class WebformElementAlterEvent.

Namespace

Drupal\webform_event_dispatcher\Event\WebformElement

Code

public function getElementType() {
  return $this
    ->getElement()['#type'];
}