public static function WorkflowScheduledTransition::loadMultipleByProperties in Workflow 8
Given an entity, get all transitions for it.
Since this may return a lot of data, a limit is included to allow for only one result.
Parameters
string $entity_type:
int[] $entity_ids:
int[] $revision_ids:
string $field_name: Optional. Can be NULL, if you want to load any field.
string $langcode: Optional. Can be empty, if you want to load any language.
int $limit: Optional. Can be NULL, if you want to load all transitions.
string $sort: Optional sort order {'ASC'|'DESC'}.
string $transition_type: The type of the transition to be fetched.
Return value
WorkflowTransitionInterface[] An array of transitions.
Overrides WorkflowTransition::loadMultipleByProperties
2 calls to WorkflowScheduledTransition::loadMultipleByProperties()
- WorkflowTransition::save in src/
Entity/ WorkflowTransition.php - Saves the entity.
- workflow_entity_delete in ./
workflow.module - Implements hook_entity_delete().
File
- src/
Entity/ WorkflowScheduledTransition.php, line 162
Class
- WorkflowScheduledTransition
- Implements a scheduled transition, as shown on Workflow form.
Namespace
Drupal\workflow\EntityCode
public static function loadMultipleByProperties($entity_type, array $entity_ids, array $revision_ids = [], $field_name = '', $langcode = '', $limit = NULL, $sort = 'ASC', $transition_type = 'workflow_scheduled_transition') {
// N.B. $transition_type is set as parameter default.
return parent::loadMultipleByProperties($entity_type, $entity_ids, $revision_ids, $field_name, $langcode, $limit, $sort, $transition_type);
}