You are here

public function WebformElementInterface::prepare in Webform 8.5

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

Prepare an element to be rendered within a webform.

Parameters

array $element: An element.

\Drupal\webform\WebformSubmissionInterface $webform_submission: A webform submission. Webform submission is optional since it is not used by composite sub elements.

See also

\Drupal\webform\Element\WebformCompositeBase::processWebformComposite

1 method overrides WebformElementInterface::prepare()
WebformElementBase::prepare in src/Plugin/WebformElementBase.php
Prepare an element to be rendered within a webform.

File

src/Plugin/WebformElementInterface.php, line 330

Class

WebformElementInterface
Defines the interface for webform elements.

Namespace

Drupal\webform\Plugin

Code

public function prepare(array &$element, WebformSubmissionInterface $webform_submission = NULL);