You are here

public static function WorkflowScheduledTransition::loadByProperties in Workflow 8

Load (Scheduled) WorkflowTransitions, most recent first.

Parameters

string $entity_type:

int $entity_id:

array $revision_ids:

string $field_name:

string $langcode:

string $sort:

string $transition_type:

Return value

\Drupal\workflow\Entity\WorkflowTransitionInterface Object representing one row from the {workflow_transition_history} table.

Overrides WorkflowTransition::loadByProperties

2 calls to WorkflowScheduledTransition::loadByProperties()
WorkflowScheduledTransition::save in src/Entity/WorkflowScheduledTransition.php
Saves a scheduled transition. If the transition is executed, save in history.
WorkflowTransitionElement::transitionElement in src/Element/WorkflowTransitionElement.php
Generate an element.

File

src/Entity/WorkflowScheduledTransition.php, line 154

Class

WorkflowScheduledTransition
Implements a scheduled transition, as shown on Workflow form.

Namespace

Drupal\workflow\Entity

Code

public static function loadByProperties($entity_type, $entity_id, array $revision_ids = [], $field_name = '', $langcode = '', $sort = 'ASC', $transition_type = 'workflow_scheduled_transition') {

  // N.B. $transition_type is set as parameter default.
  return parent::loadByProperties($entity_type, $entity_id, $revision_ids, $field_name, $langcode, $sort, $transition_type);
}