comparison core/lib/Drupal/Component/Plugin/Discovery/DiscoveryTrait.php @ 18:af1871eacc83

Update to Drupal core 8.7.1
author Chris Cannam
date Thu, 09 May 2019 15:33:08 +0100
parents 4c8ae668cc8c
children
comparison
equal deleted inserted replaced
17:129ea1e6d783 18:af1871eacc83
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 */