You are here

public static function MaestroEngine::getQueueEntryById in Maestro 3.x

Same name and namespace in other branches
  1. 8.2 src/Engine/MaestroEngine.php \Drupal\maestro\Engine\MaestroEngine::getQueueEntryById()

Returns the queue entity record based on the queueID.

Parameters

int $queueID: The Maestro Queue ID.

14 calls to MaestroEngine::getQueueEntryById()
MaestroBatchFunctionTask::execute in src/Plugin/EngineTasks/MaestroBatchFunctionTask.php
Part of the ExecutableInterface Execution of the Batch Function task will use the handler for this task as the executable function. The handler must return TRUE in order for this function to be completed by the engine. We simply pass the return…
MaestroEngine::deleteProcess in src/Engine/MaestroEngine.php
Removes all data elements associated with a process. This includes queue, assignment, status, entity identifiers and variables.
MaestroEngine::doProductionAssignmentNotifications in src/Engine/MaestroEngine.php
Internal method to do production assignment notifications.
MaestroEngine::getAssignedTaskQueueIds in src/Engine/MaestroEngine.php
Fetch a user's assigned tasks. Maestro base functionality will determine user and role assignments. You can implement hook_maestro_post_fetch_assigned_queue_tasks(int userID, array &$entity_ids) to fetch your own custom assignments whether…
MaestroEngine::nextStep in src/Engine/MaestroEngine.php
NextStep Engine method that determines which is the next step based on the current step and does all assignments as necessary.

... See full list

File

src/Engine/MaestroEngine.php, line 648

Class

MaestroEngine
Class MaestroEngine.

Namespace

Drupal\maestro\Engine

Code

public static function getQueueEntryById($queueID) {
  $queueRecord = \Drupal::entityTypeManager()
    ->getStorage('maestro_queue')
    ->resetCache([
    $queueID,
  ]);
  $queueRecord = \Drupal::entityTypeManager()
    ->getStorage('maestro_queue')
    ->load($queueID);
  return $queueRecord;
}