From d24aa8d37418ada595c96237e2b0b52ba3514812 Mon Sep 17 00:00:00 2001 From: colemanw Date: Tue, 2 Jan 2024 09:02:25 -0500 Subject: [PATCH] Add 'getLinks' action to phpStorm extension --- tools/extensions/phpstorm/Civi/PhpStorm/Api4Generator.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/extensions/phpstorm/Civi/PhpStorm/Api4Generator.php b/tools/extensions/phpstorm/Civi/PhpStorm/Api4Generator.php index 04d2dae43f..f5ed0e2af1 100644 --- a/tools/extensions/phpstorm/Civi/PhpStorm/Api4Generator.php +++ b/tools/extensions/phpstorm/Civi/PhpStorm/Api4Generator.php @@ -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'] ?? []; -- 2.25.1