Return a list of suggested sources for job items.
array $items: An array with JobItem objects which must be checked for suggested translations.
\Drupal\tmgmt\JobInterface $job: The current translation job to check for additional translation items.
array An array with all additional translation suggestions.
Note: this list is generated by pattern matching, so it may include some functions that are not actually implementations of this hook.
function hook_tmgmt_source_suggestions(array $items, JobInterface $job) {
return array(
array(
'job_item' => tmgmt_job_item_create('entity', 'node', 0),
'reason' => t('Referenced @type of field @label', array(
'@type' => 'entity',
'@label' => 'label',
)),
'from_item' => $items[1]
->id(),
),
);
}