public function AddressBook::__construct in Commerce Core 8.2
Constructs a new AddressBook object.
Parameters
\Drupal\Core\Entity\EntityTypeBundleInfo $entity_type_bundle_info: The entity type bundle info.
\Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager: The entity type manager.
File
- modules/
order/ src/ AddressBook.php, line 41
Class
Namespace
Drupal\commerce_orderCode
public function __construct(EntityTypeBundleInfo $entity_type_bundle_info, EntityTypeManagerInterface $entity_type_manager) {
$this->entityTypeBundleInfo = $entity_type_bundle_info;
$this->profileStorage = $entity_type_manager
->getStorage('profile');
$this->profileTypeStorage = $entity_type_manager
->getStorage('profile_type');
}