public function Nif::prepare in Field NIF 8
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.
Overrides TextBase::prepare
See also
\Drupal\webform\Element\WebformCompositeBase::processWebformComposite
File
- src/
Plugin/ WebformElement/ Nif.php, line 72
Class
- Nif
- Provides a 'field_nif' element.
Namespace
Drupal\field_nif\Plugin\WebformElementCode
public function prepare(array &$element, WebformSubmissionInterface $webform_submission = NULL) {
$element['#type'] = 'nif';
parent::prepare($element, $webform_submission);
}