X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=Civi%2FApi4%2FEntity.php;h=430900b663737fbe88f29eb58fc57ea89c9b479d;hb=867ca335b2455198ed62b66affcad5c277630694;hp=502de6a39b3d35062fc379cdbd21e700e1170928;hpb=b32a899cb1e9fff74fe3114506597b8b963c54a7;p=civicrm-core.git diff --git a/Civi/Api4/Entity.php b/Civi/Api4/Entity.php index 502de6a39b..430900b663 100644 --- a/Civi/Api4/Entity.php +++ b/Civi/Api4/Entity.php @@ -43,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', + ], ]; }); }