9d67a80b1c0e2b3fb49157d9d114c86c211013eb
[civicrm-core.git] / Civi / Api4 / Action / Domain / Get.php
1 <?php
2
3 namespace Civi\Api4\Action\Domain;
4
5 /**
6 * @inheritDoc
7 */
8 class Get extends \Civi\Api4\Generic\DAOGetAction {
9
10 /**
11 * Return only the current domain.
12 *
13 * @var bool
14 */
15 protected $currentDomain = FALSE;
16
17 /**
18 * @inheritDoc
19 */
20 protected function getObjects() {
21 if ($this->currentDomain) {
22 $this->addWhere('id', '=', \CRM_Core_Config::domainID());
23 }
24 return parent::getObjects();
25 }
26
27 }