You are here

public function PayPalBasic::isProduction in PayPal for Payment 2.0.x

Same name and namespace in other branches
  1. 8 src/Plugin/Payment/MethodConfiguration/PayPalBasic.php \Drupal\paypal_payment\Plugin\Payment\MethodConfiguration\PayPalBasic::isProduction()

Gets the setting for the production server.

Return value

bool

2 calls to PayPalBasic::isProduction()
PayPalBasic::getDerivativeConfiguration in src/Plugin/Payment/MethodConfiguration/PayPalBasic.php
PayPalBasic::processBuildConfigurationForm in src/Plugin/Payment/MethodConfiguration/PayPalBasic.php

File

src/Plugin/Payment/MethodConfiguration/PayPalBasic.php, line 20

Class

PayPalBasic
Abstract class for PayPal payment method configurations.

Namespace

Drupal\paypal_payment\Plugin\Payment\MethodConfiguration

Code

public function isProduction() : bool {
  return !empty($this->configuration['production']);
}