public function QueueStorageEntity::setType in Open Social 10.1.x
Same name and namespace in other branches
- 8.9 modules/custom/social_queue_storage/src/Entity/QueueStorageEntity.php \Drupal\social_queue_storage\Entity\QueueStorageEntity::setType()
- 8.8 modules/custom/social_queue_storage/src/Entity/QueueStorageEntity.php \Drupal\social_queue_storage\Entity\QueueStorageEntity::setType()
- 10.3.x modules/custom/social_queue_storage/src/Entity/QueueStorageEntity.php \Drupal\social_queue_storage\Entity\QueueStorageEntity::setType()
- 10.0.x modules/custom/social_queue_storage/src/Entity/QueueStorageEntity.php \Drupal\social_queue_storage\Entity\QueueStorageEntity::setType()
- 10.2.x modules/custom/social_queue_storage/src/Entity/QueueStorageEntity.php \Drupal\social_queue_storage\Entity\QueueStorageEntity::setType()
Sets the queue storage type.
Parameters
string $type: The queue storage type.
Return value
$this
Overrides QueueStorageEntityInterface::setType
File
- modules/
custom/ social_queue_storage/ src/ Entity/ QueueStorageEntity.php, line 81
Class
- QueueStorageEntity
- Defines the Queue storage entity entity.
Namespace
Drupal\social_queue_storage\EntityCode
public function setType($type) {
$this
->set('type', $this
->bundle());
}