-
- Downloads
APIv4 - Return id_field as part of Entity.get
All entities have a unique identifier field, usually named 'id' but some entities the field is named something else. e.g. Afform uses 'name' as the identifier. This returns the name of the field as part of Entity.get, and it's also available directly from each API class e.g. Contact::getInfo().
Showing
- Civi/Api4/Entity.php 4 additions, 0 deletionsCivi/Api4/Entity.php
- Civi/Api4/Generic/AbstractEntity.php 1 addition, 0 deletionsCivi/Api4/Generic/AbstractEntity.php
- Civi/Api4/Generic/BasicEntity.php 10 additions, 1 deletionCivi/Api4/Generic/BasicEntity.php
- ext/afform/core/Civi/Api4/Afform.php 9 additions, 0 deletionsext/afform/core/Civi/Api4/Afform.php
- tests/phpunit/api/v4/Action/BasicActionsTest.php 42 additions, 36 deletionstests/phpunit/api/v4/Action/BasicActionsTest.php
- tests/phpunit/api/v4/Mock/Api4/MockBasicEntity.php 5 additions, 3 deletionstests/phpunit/api/v4/Mock/Api4/MockBasicEntity.php
- tests/phpunit/api/v4/Mock/MockEntityDataStorage.php 5 additions, 5 deletionstests/phpunit/api/v4/Mock/MockEntityDataStorage.php
Loading
Please register or sign in to comment