You are here

protected property PackageTypeManager::$defaults in Commerce Shipping 8.2

Default values for each package type plugin.

Type: array

Overrides DefaultPluginManager::$defaults

File

src/PackageTypeManager.php, line 27

Class

PackageTypeManager
Manages discovery and instantiation of package type plugins.

Namespace

Drupal\commerce_shipping

Code

protected $defaults = [
  'id' => '',
  'remote_id' => '',
  'label' => '',
  'dimensions' => [],
  'weight' => NULL,
  // A shipping method plugin ID. Used to optionally restrict the package type
  // to shipping methods with the specified plugin.
  'shipping_method' => NULL,
  'class' => PackageType::class,
];