/**
  * {@inheritdoc}
  */
 public function load()
 {
     $entities = array();
     // TODO: D8-port: get entity from proper core methods.
     /* @var $entity EntityInterface */
     $entity = $this->workflow_entity;
     // N.B. This is a custom variable.
     $field_name = workflow_url_get_field_name();
     $entity_type = $entity->getEntityTypeId();
     $entity_id = $entity->id();
     // @todo D8-port: document $limit.
     // @todo d8-port: $limit should be used in pager, not in load().
     $this->limit = \Drupal::config('workflow.settings')->get('workflow_states_per_page');
     $limit = $this->limit;
     // Get Transitions with highest timestamp first.
     $entities = WorkflowTransition::loadMultipleByProperties($entity_type, array($entity_id), [], $field_name, '', $limit, 'DESC');
     return $entities;
 }
 /**
  * {@inheritdoc}
  */
 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);
 }