You are here

public function WebformInterface::getElement in Webform 8.5

Same name and namespace in other branches
  1. 6.x src/WebformInterface.php \Drupal\webform\WebformInterface::getElement()

Get a webform's initialized element.

Parameters

string $key: The element's key.

bool $include_children: Include initialized children.

Return value

array|null An associative array containing an initialized element.

1 method overrides WebformInterface::getElement()
Webform::getElement in src/Entity/Webform.php
Get a webform's initialized element.

File

src/WebformInterface.php, line 849

Class

WebformInterface
Provides an interface defining a webform entity.

Namespace

Drupal\webform

Code

public function getElement($key, $include_children = FALSE);