X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=Civi%2FCore%2FAssetBuilder.php;h=155c32c77970df4d7c2462c046c23770009e2010;hb=ed89dcbb2f160f1f62dcfd82423c64317febfe9c;hp=82e2141461b1e15e8ab74ce669683b9eac168a0a;hpb=a43e60fdc010234963901f4394f47b7c315dc910;p=civicrm-core.git diff --git a/Civi/Core/AssetBuilder.php b/Civi/Core/AssetBuilder.php index 82e2141461..155c32c779 100644 --- a/Civi/Core/AssetBuilder.php +++ b/Civi/Core/AssetBuilder.php @@ -20,7 +20,7 @@ use Civi\Core\Exception\UnknownAssetException; * named "api-fields.json" which lists all the fields of * all the API entities. * - * @code + * ``` * // Build a URL to `api-fields.json`. * $url = \Civi::service('asset_builder')->getUrl('api-fields.json'); * @@ -37,7 +37,7 @@ use Civi\Core\Exception\UnknownAssetException; * $mimeType = 'application/json'; * $content = json_encode($fields); * } - * @endCode + * ``` * * Assets can be parameterized. Each combination of ($asset,$params) * will be cached separately. For example, we might want a copy of @@ -45,7 +45,7 @@ use Civi\Core\Exception\UnknownAssetException; * Simply pass the chosen entities into `getUrl()`, then update * the definition to use `$params['entities']`, as in: * - * @code + * ``` * // Build a URL to `api-fields.json`. * $url = \Civi::service('asset_builder')->getUrl('api-fields.json', array( * 'entities' => array('Contact', 'Phone', 'Email', 'Address'), @@ -63,7 +63,7 @@ use Civi\Core\Exception\UnknownAssetException; * $mimeType = 'application/json'; * $content = json_encode($fields); * } - * @endCode + * ``` * * Note: These assets are designed to hold non-sensitive data, such as * aggregated JS or common metadata. There probably are ways to