You are here

public function Org::setActive in RedHen CRM 8

Sets the active status of a Org.

Parameters

bool $active: TRUE to set this Org to active, FALSE to set it to inactive.

Return value

\Drupal\redhen_org\OrgInterface The called Org entity.

Overrides OrgInterface::setActive

File

modules/redhen_org/src/Entity/Org.php, line 125

Class

Org
Defines the Organization entity.

Namespace

Drupal\redhen_org\Entity

Code

public function setActive($active) {
  $this
    ->set('status', $active ? REDHEN_ORG_ACTIVE : REDHEN_ORG_INACTIVE);
  return $this;
}