Mercurial > hg > isophonics-drupal-site
diff core/lib/Drupal/Core/Plugin/DefaultPluginManager.php @ 14:1fec387a4317
Update Drupal core to 8.5.2 via Composer
author | Chris Cannam |
---|---|
date | Mon, 23 Apr 2018 09:46:53 +0100 |
parents | 4c8ae668cc8c |
children | af1871eacc83 |
line wrap: on
line diff
--- a/core/lib/Drupal/Core/Plugin/DefaultPluginManager.php Mon Apr 23 09:33:26 2018 +0100 +++ b/core/lib/Drupal/Core/Plugin/DefaultPluginManager.php Mon Apr 23 09:46:53 2018 +0100 @@ -2,6 +2,7 @@ namespace Drupal\Core\Plugin; +use Drupal\Component\Assertion\Inspector; use Drupal\Component\Plugin\Definition\PluginDefinitionInterface; use Drupal\Component\Plugin\Discovery\CachedDiscoveryInterface; use Drupal\Core\Cache\CacheableDependencyInterface; @@ -148,14 +149,14 @@ * definitions should be cleared along with other, related cache entries. */ public function setCacheBackend(CacheBackendInterface $cache_backend, $cache_key, array $cache_tags = []) { - assert('\Drupal\Component\Assertion\Inspector::assertAllStrings($cache_tags)', 'Cache Tags must be strings.'); + assert(Inspector::assertAllStrings($cache_tags), 'Cache Tags must be strings.'); $this->cacheBackend = $cache_backend; $this->cacheKey = $cache_key; $this->cacheTags = $cache_tags; } /** - * Initializes the alter hook. + * Sets the alter hook name. * * @param string $alter_hook * Name of the alter hook; for example, to invoke