How to get entity_id of created custom address after executing of customer_address_save_after
event
private function getEntityId($observer)
{
$customerAddress = $observer->getCustomerAddress();
$entityId = $customerAddress->getCustomer()->getEntityId();
return $entityId; //entity_id of the customer_entity table
}
This method returns the entity_id of the customer_entity
table, but I need the entity_id
of the customer_address_entity
table