public function HeartbeatType::setMainEntity in Heartbeat 8
Sets the main Entity Type of the Heartbeat Type
Parameters
string $mainentity: Describing entity type used in this Heartbeat Type
Overrides HeartbeatTypeInterface::setMainEntity
File
- src/
Entity/ HeartbeatType.php, line 312
Class
- HeartbeatType
- Defines the Heartbeat type entity.
Namespace
Drupal\heartbeat\EntityCode
public function setMainEntity($mainentity) {
$this
->set('mainentity', $mainentity);
}