X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=Civi%2FApi4%2FEntity.php;h=430900b663737fbe88f29eb58fc57ea89c9b479d;hb=cd999d6ba51900bae0986085c5b4478f91fb240b;hp=090550184eb0987b2eeccc2c528f1485672ac798;hpb=7138b10f7e376c96c28b057261394635021cd97b;p=civicrm-core.git diff --git a/Civi/Api4/Entity.php b/Civi/Api4/Entity.php index 090550184e..430900b663 100644 --- a/Civi/Api4/Entity.php +++ b/Civi/Api4/Entity.php @@ -24,6 +24,8 @@ namespace Civi\Api4; /** * Retrieves information about all Api4 entities. * + * @see \Civi\Api4\Generic\AbstractEntity + * * @package Civi\Api4 */ class Entity extends Generic\AbstractEntity { @@ -41,9 +43,23 @@ class Entity extends Generic\AbstractEntity { public static function getFields() { return new \Civi\Api4\Generic\BasicGetFieldsAction('Entity', __FUNCTION__, function() { return [ - ['name' => 'name'], - ['name' => 'description'], - ['name' => 'comment'], + [ + 'name' => 'name', + 'description' => 'Entity name', + ], + [ + 'name' => 'description', + 'description' => 'Description from docblock', + ], + [ + 'name' => 'comment', + 'description' => 'Comments from docblock', + ], + [ + 'name' => 'see', + 'data_type' => 'Array', + 'description' => 'Any @see annotations from docblock', + ], ]; }); }