diff --git a/core/lib/Drupal/Core/Block/BlockManager.php b/core/lib/Drupal/Core/Block/BlockManager.php index 95f487858cadec1c045673a7ce6cb465f3028055..a80a311073872e21102b2730c4f570f6d8cc0e23 100644 --- a/core/lib/Drupal/Core/Block/BlockManager.php +++ b/core/lib/Drupal/Core/Block/BlockManager.php @@ -90,7 +90,7 @@ public function getFallbackPluginId($plugin_id, array $configuration = []) { * {@inheritdoc} */ protected function handlePluginNotFound($plugin_id, array $configuration) { - $this->logger->warning('The "%plugin_id" was not found', ['%plugin_id' => $plugin_id]); + $this->logger->warning('The "%plugin_id" block plugin was not found', ['%plugin_id' => $plugin_id]); return parent::handlePluginNotFound($plugin_id, $configuration); } diff --git a/core/tests/Drupal/KernelTests/Core/Config/ConfigImporterMissingContentTest.php b/core/tests/Drupal/KernelTests/Core/Config/ConfigImporterMissingContentTest.php index 2ab178cbaf62f677bf7c56297ec8630b92fcdb55..ed6c87dfbf04cc92dfd3d618f2775939fbb5900d 100644 --- a/core/tests/Drupal/KernelTests/Core/Config/ConfigImporterMissingContentTest.php +++ b/core/tests/Drupal/KernelTests/Core/Config/ConfigImporterMissingContentTest.php @@ -181,12 +181,12 @@ public function testMissingBlockContent(): void { $this->logMessages = []; $config_importer = $this->configImporter(); $config_importer->import(); - $this->assertNotContains('The "block_content:6376f337-fcbf-4b28-b30e-ed5b6932e692" was not found', $this->logMessages); + $this->assertNotContains('The "block_content:6376f337-fcbf-4b28-b30e-ed5b6932e692" block plugin was not found', $this->logMessages); // Ensure the expected message is generated when creating an instance of the // block. $instance = $this->container->get('plugin.manager.block')->createInstance($plugin_id); - $this->assertContains('The "block_content:6376f337-fcbf-4b28-b30e-ed5b6932e692" was not found', $this->logMessages); + $this->assertContains('The "block_content:6376f337-fcbf-4b28-b30e-ed5b6932e692" block plugin was not found', $this->logMessages); $this->assertInstanceOf(Broken::class, $instance); } diff --git a/core/tests/Drupal/Tests/Core/Block/BlockManagerTest.php b/core/tests/Drupal/Tests/Core/Block/BlockManagerTest.php index d11b3b8a001fdc19f233a9bff6b9b61b6db120c9..8aa190f880567dde0e64fd188a4a5631fa2baf96 100644 --- a/core/tests/Drupal/Tests/Core/Block/BlockManagerTest.php +++ b/core/tests/Drupal/Tests/Core/Block/BlockManagerTest.php @@ -114,7 +114,7 @@ public function testGroupedDefinitions(): void { * @covers ::handlePluginNotFound */ public function testHandlePluginNotFound(): void { - $this->logger->warning('The "%plugin_id" was not found', ['%plugin_id' => 'invalid'])->shouldBeCalled(); + $this->logger->warning('The "%plugin_id" block plugin was not found', ['%plugin_id' => 'invalid'])->shouldBeCalled(); $plugin = $this->blockManager->createInstance('invalid'); $this->assertSame('broken', $plugin->getPluginId()); }