You are here

protected function CustomerProfile::loadFormDisplay in Commerce Core 8.2

Loads the form display used to build the profile form.

Return value

\Drupal\Core\Entity\Display\EntityFormDisplayInterface The form display.

3 calls to CustomerProfile::loadFormDisplay()
CustomerProfile::buildInlineForm in modules/order/src/Plugin/Commerce/InlineForm/CustomerProfile.php
Builds the inline form.
CustomerProfile::submitInlineForm in modules/order/src/Plugin/Commerce/InlineForm/CustomerProfile.php
Submits the inline form.
CustomerProfile::validateInlineForm in modules/order/src/Plugin/Commerce/InlineForm/CustomerProfile.php
Validates the inline form.

File

modules/order/src/Plugin/Commerce/InlineForm/CustomerProfile.php, line 396

Class

CustomerProfile
Provides an inline form for managing a customer profile.

Namespace

Drupal\commerce_order\Plugin\Commerce\InlineForm

Code

protected function loadFormDisplay() {
  $form_mode = $this->configuration['profile_scope'];
  $form_display = EntityFormDisplay::collectRenderDisplay($this->entity, $form_mode);

  // The log message field should never be shown to customers.
  $form_display
    ->removeComponent('revision_log_message');
  return $form_display;
}