public function Connection::setActive in RedHen CRM 8
Sets the active status of a Connection.
Parameters
bool $active: TRUE to set this Connection to active, FALSE to set it to inactive.
Return value
\Drupal\redhen_connection\ConnectionInterface The called Connection entity.
Overrides ConnectionInterface::setActive
File
- modules/
redhen_connection/ src/ Entity/ Connection.php, line 113
Class
- Connection
- Defines the Connection entity.
Namespace
Drupal\redhen_connection\EntityCode
public function setActive($active) {
$this
->set('status', $active ? REDHEN_CONNECTION_ACTIVE : REDHEN_CONNECTION_INACTIVE);
return $this;
}