3 namespace Drupal\drupalmoduleupgrader\Plugin\DMU\Converter\Functions;
5 use Drupal\drupalmoduleupgrader\DeriverBase;
8 * Builds derivative definitions for the _load_multiple plugin.
10 class LoadMultipleDeriver extends DeriverBase {
15 public function getDerivativeDefinitions($base_definition) {
18 foreach (['node', 'user', 'comment', 'taxonomy_term'] as $entity_type) {
19 $function = $entity_type . '_load_multiple';
20 $variables = ['@function' => $function];
22 $derivative = $base_definition;
23 $derivative['function'] = $function;
24 $derivative['entity_type'] = $entity_type;
25 $derivative['message'] = $this->t('`@function` is now `EntityStorageInterface::loadMultiple()`.', $variables);
26 $derivative['description'] = $this->t('Rewrites calls to @function().', $variables);
28 $derivatives[$entity_type] = $derivative;