X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=Civi%2FApi4%2FEntity.php;h=430900b663737fbe88f29eb58fc57ea89c9b479d;hb=867ca335b2455198ed62b66affcad5c277630694;hp=090550184eb0987b2eeccc2c528f1485672ac798;hpb=64ada38ca07d67b8336c2fba7d59f3384f3555a9;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', + ], ]; }); }