X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=Civi%2FApi4%2FDomain.php;h=a8a40cac74d4ef75bae23801bdc7cd3e7811aca1;hb=3b3c16be6862ba9c98048671bde091e0fbb0f705;hp=01172433b6e8aebd3bb77459a6ff142f54dcab7a;hpb=64ada38ca07d67b8336c2fba7d59f3384f3555a9;p=civicrm-core.git diff --git a/Civi/Api4/Domain.php b/Civi/Api4/Domain.php index 01172433b6..a8a40cac74 100644 --- a/Civi/Api4/Domain.php +++ b/Civi/Api4/Domain.php @@ -14,8 +14,6 @@ * * @package CRM * @copyright CiviCRM LLC https://civicrm.org/licensing - * $Id$ - * */ @@ -24,12 +22,19 @@ namespace Civi\Api4; /** * Domains - multisite instances of CiviCRM. * + * @see https://docs.civicrm.org/sysadmin/en/latest/setup/multisite/ + * * @package Civi\Api4 */ class Domain extends Generic\DAOEntity { - public static function get() { - return new \Civi\Api4\Action\Domain\Get(__CLASS__, __FUNCTION__); + /** + * @param bool $checkPermissions + * @return Action\Domain\Get + */ + public static function get($checkPermissions = TRUE) { + return (new Action\Domain\Get(__CLASS__, __FUNCTION__)) + ->setCheckPermissions($checkPermissions); } }