Add 'getLinks' action to phpStorm extension
authorcolemanw <coleman@civicrm.org>
Tue, 2 Jan 2024 14:02:25 +0000 (09:02 -0500)
committercolemanw <coleman@civicrm.org>
Tue, 2 Jan 2024 14:02:25 +0000 (09:02 -0500)
tools/extensions/phpstorm/Civi/PhpStorm/Api4Generator.php

index 04d2dae43ff510925172f933237f82be2c73007f..f5ed0e2af1781afa704304c982f17984491a31aa 100644 (file)
@@ -32,7 +32,7 @@ class Api4Generator extends AutoService implements EventSubscriberInterface {
      */
 
     $entities = Entity::get(FALSE)->addSelect('name')->execute()->column('name');
-    $actions = ['get', 'save', 'create', 'update', 'delete', 'replace', 'revert', 'export', 'autocomplete', 'getFields', 'getActions', 'checkAccess'];
+    $actions = ['get', 'save', 'create', 'update', 'delete', 'replace', 'revert', 'export', 'autocomplete', 'getFields', 'getActions', 'getLinks', 'checkAccess'];
     $properties = Entity::getFields(FALSE)->addOrderBy('name')->execute()->column('name');
     $entityTypes = Entity::getFields(FALSE)->addWhere('name', '=', 'type')->setLoadOptions(TRUE)->execute()->first()['options'] ?? [];