X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=Civi%2FAPI%2FWhitelistRule.php;h=5150b362f82827bbb946d5dbe1bc8cc990aef636;hb=a0fb1ff4b49479291e971a561504250788a52627;hp=c17b41cb2e67ecc082c141589e44edb78cfee215;hpb=ab09045c843e85a6e39f5c02d27050405ccbf827;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')