You are here

protected function PaymentReferenceBase::disableChildren in Payment 8.2

Disables all child elements.

Parameters

mixed[] $elements:

1 call to PaymentReferenceBase::disableChildren()
PaymentReferenceBase::buildPaymentForm in src/Element/PaymentReferenceBase.php
Builds the payment form.

File

src/Element/PaymentReferenceBase.php, line 446

Class

PaymentReferenceBase
Provides a base for payment reference elements.

Namespace

Drupal\payment\Element

Code

protected function disableChildren(array &$elements) {
  foreach (Element::children($elements) as $child_key) {
    $elements[$child_key]['#disabled'] = TRUE;
    $this
      ->disableChildren($elements[$child_key]);
  }
}