You are here

public function EntityQueue::getEntitySettings in Entityqueue 8

Gets the selection settings used by a subqueue's 'items' reference field.

Return value

array An array with the following keys:

  • target_type: The type of the entities that will be queued.
  • handler: The entity reference selection handler that will be used by the subqueue's 'items' field.
  • handler_settings: The entity reference selection handler settings that will be used by the subqueue's 'items' field.

Overrides EntityQueueInterface::getEntitySettings

File

src/Entity/EntityQueue.php, line 153

Class

EntityQueue
Defines the EntityQueue entity class.

Namespace

Drupal\entityqueue\Entity

Code

public function getEntitySettings() {
  return $this->entity_settings + [
    // Ensure that we always have an empty array by default for the
    // 'handler_settings', regardless of the incoming form values.
    'handler_settings' => [],
  ];
}