4 +--------------------------------------------------------------------+
5 | Copyright CiviCRM LLC. All rights reserved. |
7 | This work is published under the GNU AGPLv3 license with some |
8 | permitted exceptions and without any warranty. For full license |
9 | and copyright information, see https://civicrm.org/licensing |
10 +--------------------------------------------------------------------+
16 * @copyright CiviCRM LLC https://civicrm.org/licensing
25 * Retrieves information about all Api4 entities.
29 class Entity
extends Generic\AbstractEntity
{
32 * @return Action\Entity\Get
34 public static function get() {
35 return new Action\Entity\
Get('Entity', __FUNCTION__
);
39 * @return \Civi\Api4\Generic\BasicGetFieldsAction
41 public static function getFields() {
42 return new \Civi\Api4\Generic\
BasicGetFieldsAction('Entity', __FUNCTION__
, function() {
45 ['name' => 'description'],
46 ['name' => 'comment'],
52 * @return Action\Entity\GetLinks
54 public static function getLinks() {
55 return new Action\Entity\
GetLinks('Entity', __FUNCTION__
);
61 public static function permissions() {
63 'default' => ['access CiviCRM'],