X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=Civi%2FAPI%2FWhitelistRule.php;h=5150b362f82827bbb946d5dbe1bc8cc990aef636;hb=b38b96cf6181f30ffe3d2b7e1c32a05c5d63c7e1;hp=c17b41cb2e67ecc082c141589e44edb78cfee215;hpb=ee4ac4e666956c3255b24525be6fc992760513a8;p=civicrm-core.git diff --git a/Civi/API/WhitelistRule.php b/Civi/API/WhitelistRule.php index c17b41cb2e..5150b362f8 100644 --- a/Civi/API/WhitelistRule.php +++ b/Civi/API/WhitelistRule.php @@ -14,14 +14,14 @@ namespace Civi\API; * A WhitelistRule is used to determine if an API call is authorized. * For example: * - * @code + * ``` * new WhitelistRule(array( * 'entity' => 'Contact', * 'actions' => array('get','getsingle'), * 'required' => array('contact_type' => 'Organization'), * 'fields' => array('id', 'display_name', 'sort_name', 'created_date'), * )); - * @endcode + * ``` * * This rule would allow API requests that attempt to get contacts of type "Organization", * but only a handful of fields ('id', 'display_name', 'sort_name', 'created_date')