comparison core/lib/Drupal/Component/Plugin/Discovery/DiscoveryTrait.php @ 5:12f9dff5fda9 tip

Update to Drupal core 8.7.1
author Chris Cannam
date Thu, 09 May 2019 15:34:47 +0100
parents c75dbcec494b
children
comparison
equal deleted inserted replaced
4:a9cd425dd02b 5:12f9dff5fda9
47 } 47 }
48 elseif (!$exception_on_invalid) { 48 elseif (!$exception_on_invalid) {
49 return NULL; 49 return NULL;
50 } 50 }
51 51
52 throw new PluginNotFoundException($plugin_id, sprintf('The "%s" plugin does not exist.', $plugin_id)); 52 $valid_ids = implode(', ', array_keys($definitions));
53 throw new PluginNotFoundException($plugin_id, sprintf('The "%s" plugin does not exist. Valid plugin IDs for %s are: %s', $plugin_id, static::class, $valid_ids));
53 } 54 }
54 55
55 /** 56 /**
56 * {@inheritdoc} 57 * {@inheritdoc}
57 */ 58 */