Merge pull request #21960 from colemanw/afformBaseModule
[civicrm-core.git] / Civi / Api4 / Entity.php
index aa8e3fe284c572a837c45b590d9bcbafc27a9896..d6b0dfcc3c064b667bc252f9fd297d41a30a226b 100644 (file)
@@ -58,6 +58,7 @@ class Entity extends Generic\AbstractEntity {
             'DAOEntity' => 'DAOEntity',
             'CustomValue' => 'CustomValue',
             'BasicEntity' => 'BasicEntity',
+            'ManagedEntity' => 'ManagedEntity',
             'EntityBridge' => 'EntityBridge',
             'OptionList' => 'OptionList',
           ],
@@ -79,8 +80,9 @@ class Entity extends Generic\AbstractEntity {
           'description' => 'Class name for dao-based entities',
         ],
         [
-          'name' => 'id_field',
-          'description' => 'Name of unique identifier field (e.g. "id")',
+          'name' => 'primary_key',
+          'type' => 'Array',
+          'description' => 'Name of unique identifier field(s) (e.g. [id])',
         ],
         [
           'name' => 'label_field',
@@ -111,6 +113,11 @@ class Entity extends Generic\AbstractEntity {
           'data_type' => 'String',
           'description' => 'Version this API entity was added',
         ],
+        [
+          'name' => 'class',
+          'data_type' => 'String',
+          'description' => 'PHP class name',
+        ],
         [
           'name' => 'bridge',
           'data_type' => 'Array',
@@ -127,6 +134,7 @@ class Entity extends Generic\AbstractEntity {
 
   /**
    * @param bool $checkPermissions
+   * @deprecated
    * @return Action\Entity\GetLinks
    */
   public static function getLinks($checkPermissions = TRUE) {