You are here

public static function WorkflowTransitionInterface::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.

1 method overrides WorkflowTransitionInterface::loadMultipleByProperties()
WorkflowTransition::loadMultipleByProperties in src/Entity/WorkflowTransition.php
Given an entity, get all transitions for it.

File

src/Entity/WorkflowTransitionInterface.php, line 72

Class

WorkflowTransitionInterface
Defines a common interface for Workflow*Transition* objects.

Namespace

Drupal\workflow\Entity

Code

public static function loadMultipleByProperties($entity_type, array $entity_ids, array $revision_ids = [], $field_name = '', $langcode = '', $limit = NULL, $sort = 'ASC', $transition_type = '');