public function CountryManagerInterface::getByProperty in Ubercart 8.4
Returns all uc_country config entities with the specified propertes.
For example: To obtain all enabled countries, use getByProperty(['status' => TRUE]). To obtain the country with the two-character ISO 3166 code of 'ES', use getByProperty(['alpha_2' => 'ES']). Any property/properties defined in \Drupal\uc_country\Entity\Country may be used. Keep in mind that in most cases these properties are <em>unique</em>, so this method will return only one country configuration entity.
Parameters
array $properties: An associative array where the keys are the property names and the values are the values those properties must have.
Return value
\Drupal\uc_country\Entity\Country An array of \Drupal\uc_country\Entity\Country configuration entities, keyed by Id.
1 method overrides CountryManagerInterface::getByProperty()
- CountryManager::getByProperty in uc_country/
src/ CountryManager.php - Returns all uc_country config entities with the specified propertes.
File
- uc_country/
src/ CountryManagerInterface.php, line 56
Class
- CountryManagerInterface
- Defines a common interface for country managers.
Namespace
Drupal\uc_countryCode
public function getByProperty(array $properties);