You are here

public function ContactInformation::isVisible in Commerce Core 8.2

Determines whether the pane is visible.

Return value

bool TRUE if the pane is visible, FALSE otherwise.

Overrides CheckoutPaneBase::isVisible

File

modules/checkout/src/Plugin/Commerce/CheckoutPane/ContactInformation.php, line 72

Class

ContactInformation
Provides the contact information pane.

Namespace

Drupal\commerce_checkout\Plugin\Commerce\CheckoutPane

Code

public function isVisible() {

  // Show the pane only for guest checkout.
  return empty($this->order
    ->getCustomerId());
}