Magento 2 Documentation
2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
|
Public Member Functions | |
save (\Magento\Customer\Api\Data\CustomerInterface $customer, $passwordHash=null) | |
get ($email, $websiteId=null) | |
getById ($customerId) | |
getList (\Magento\Framework\Api\SearchCriteriaInterface $searchCriteria) | |
delete (\Magento\Customer\Api\Data\CustomerInterface $customer) | |
deleteById ($customerId) | |
Customer CRUD interface. @api
Definition at line 15 of file CustomerRepositoryInterface.php.
delete | ( | \Magento\Customer\Api\Data\CustomerInterface | $customer | ) |
Delete customer.
\Magento\Customer\Api\Data\CustomerInterface | $customer |
deleteById | ( | $customerId | ) |
Delete customer by Customer ID.
int | $customerId |
Implemented in CustomerRepository.
get | ( | $email, | |
$websiteId = null |
|||
) |
Retrieve customer.
string | ||
int | null | $websiteId |
Implemented in CustomerRepository.
getById | ( | $customerId | ) |
Get customer by Customer ID.
int | $customerId |
Implemented in CustomerRepository.
getList | ( | \Magento\Framework\Api\SearchCriteriaInterface | $searchCriteria | ) |
Retrieve customers which match a specified criteria.
This call returns an array of objects, but detailed information about each object’s attributes might not be included. See http://devdocs.magento.com/codelinks/attributes.html#CustomerRepositoryInterface to determine which call to use to get detailed information about all attributes for an object.
\Magento\Framework\Api\SearchCriteriaInterface | $searchCriteria |
save | ( | \Magento\Customer\Api\Data\CustomerInterface | $customer, |
$passwordHash = null |
|||
) |
Create or update a customer.
\Magento\Customer\Api\Data\CustomerInterface | $customer | |
string | $passwordHash |