You are here

public function QueueStorageEntity::setType in Open Social 10.3.x

Same name and namespace in other branches
  1. 8.9 modules/custom/social_queue_storage/src/Entity/QueueStorageEntity.php \Drupal\social_queue_storage\Entity\QueueStorageEntity::setType()
  2. 8.8 modules/custom/social_queue_storage/src/Entity/QueueStorageEntity.php \Drupal\social_queue_storage\Entity\QueueStorageEntity::setType()
  3. 10.0.x modules/custom/social_queue_storage/src/Entity/QueueStorageEntity.php \Drupal\social_queue_storage\Entity\QueueStorageEntity::setType()
  4. 10.1.x modules/custom/social_queue_storage/src/Entity/QueueStorageEntity.php \Drupal\social_queue_storage\Entity\QueueStorageEntity::setType()
  5. 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\Entity

Code

public function setType($type) {
  $this
    ->set('type', $this
    ->bundle());
}