/**
  * Builds the postal code form elements.
  *
  * @param array $form
  *   The form.
  * @param array $values
  *   The form values.
  * @param \Drupal\address\Entity\AddressFormatInterface $address_format
  *  The address format for the selected country.
  *
  * @return array
  *   The form with the added postal code elements.
  */
 protected function buildPostalCodeElements(array $form, array $values, AddressFormatInterface $address_format)
 {
     if (!in_array(AddressField::POSTAL_CODE, $address_format->getUsedFields())) {
         // The address format doesn't use a postal code field.
         return $form;
     }
     $form['included_postal_codes'] = ['#type' => 'textfield', '#title' => $this->t('Included postal codes'), '#description' => $this->t('A regular expression ("/(35|38)[0-9]{3}/") or comma-separated list, including ranges ("98, 100:200")'), '#default_value' => $values['included_postal_codes']];
     $form['excluded_postal_codes'] = ['#type' => 'textfield', '#title' => $this->t('Excluded postal codes'), '#description' => $this->t('A regular expression ("/(35|38)[0-9]{3}/") or comma-separated list, including ranges ("98, 100:200")'), '#default_value' => $values['excluded_postal_codes']];
     return $form;
 }