diff --git a/core/modules/block/block.module b/core/modules/block/block.module
index e87818cb528..85d295e4f1b 100644
--- a/core/modules/block/block.module
+++ b/core/modules/block/block.module
@@ -34,7 +34,7 @@ function block_help($route_name, RouteMatchInterface $route_match) {
$output .= '
' . t('Controlling visibility') . '';
$output .= '' . t('You can control the visibility of a block by restricting it to specific pages, content types, and/or roles by setting the appropriate options under Visibility settings of the block configuration.') . '';
$output .= '' . t('Adding custom blocks') . '';
- $output .= '' . t('You can add custom blocks, if the the Custom Block module is enabled on the Extend page. For more information, see the Custom Block help page.', array('!extend' => \Drupal::url('system.modules_list'), '!blockcontent-help' => \Drupal::url('help.page', array('name' => 'block_content')))) . '';
+ $output .= '' . t('You can add custom blocks, if the Custom Block module is installed on the Extend page. For more information, see the Custom Block help page.', array('!extend' => \Drupal::url('system.modules_list'), '!blockcontent-help' => \Drupal::url('help.page', array('name' => 'block_content')))) . '';
$output .= '';
return $output;
}
@@ -108,7 +108,7 @@ function _block_rehash($theme = NULL) {
// Disable blocks in invalid regions.
if (!empty($region) && $region != BlockInterface::BLOCK_REGION_NONE && !isset($regions[$region]) && $status) {
drupal_set_message(t('The block %info was assigned to the invalid region %region and has been disabled.', array('%info' => $block_id, '%region' => $region)), 'warning');
- // Disabled modules are moved into the BlockInterface::BLOCK_REGION_NONE
+ // Disabled blocks are moved into the BlockInterface::BLOCK_REGION_NONE
// later so no need to move the block to another region.
$block->disable()->save();
}
diff --git a/core/modules/block/src/BlockPluginCollection.php b/core/modules/block/src/BlockPluginCollection.php
index 8c348d1da1c..0f103ca3f64 100644
--- a/core/modules/block/src/BlockPluginCollection.php
+++ b/core/modules/block/src/BlockPluginCollection.php
@@ -64,8 +64,9 @@ class BlockPluginCollection extends DefaultSingleLazyPluginCollection {
}
catch (PluginException $e) {
$module = $this->configuration['provider'];
- // Ignore blocks belonging to disabled modules, but re-throw valid
- // exceptions when the module is enabled and the plugin is misconfigured.
+ // Ignore blocks belonging to uninstalled modules, but re-throw valid
+ // exceptions when the module is installed and the plugin is
+ // misconfigured.
if (!$module || \Drupal::moduleHandler()->moduleExists($module)) {
throw $e;
}
diff --git a/core/modules/block/src/Tests/BlockAdminThemeTest.php b/core/modules/block/src/Tests/BlockAdminThemeTest.php
index 9a86f29271f..073f64f0d0c 100644
--- a/core/modules/block/src/Tests/BlockAdminThemeTest.php
+++ b/core/modules/block/src/Tests/BlockAdminThemeTest.php
@@ -17,7 +17,7 @@ use Drupal\simpletest\WebTestBase;
class BlockAdminThemeTest extends WebTestBase {
/**
- * Modules to enable.
+ * Modules to install.
*
* @var array
*/
diff --git a/core/modules/block/src/Tests/BlockCacheTest.php b/core/modules/block/src/Tests/BlockCacheTest.php
index fd9fc888548..6177f275510 100644
--- a/core/modules/block/src/Tests/BlockCacheTest.php
+++ b/core/modules/block/src/Tests/BlockCacheTest.php
@@ -18,7 +18,7 @@ use Drupal\simpletest\WebTestBase;
class BlockCacheTest extends WebTestBase {
/**
- * Modules to enable.
+ * Modules to install.
*
* @var array
*/
diff --git a/core/modules/block/src/Tests/BlockHiddenRegionTest.php b/core/modules/block/src/Tests/BlockHiddenRegionTest.php
index 95b06f3beb0..f451103ab6d 100644
--- a/core/modules/block/src/Tests/BlockHiddenRegionTest.php
+++ b/core/modules/block/src/Tests/BlockHiddenRegionTest.php
@@ -23,7 +23,7 @@ class BlockHiddenRegionTest extends WebTestBase {
protected $adminUser;
/**
- * Modules to enable.
+ * Modules to install.
*
* @var array
*/
diff --git a/core/modules/block/src/Tests/BlockHookOperationTest.php b/core/modules/block/src/Tests/BlockHookOperationTest.php
index c5758d378e0..0b955eaac25 100644
--- a/core/modules/block/src/Tests/BlockHookOperationTest.php
+++ b/core/modules/block/src/Tests/BlockHookOperationTest.php
@@ -18,7 +18,7 @@ use Drupal\simpletest\WebTestBase;
class BlockHookOperationTest extends WebTestBase {
/**
- * Modules to enable.
+ * Modules to install.
*
* @var array
*/
diff --git a/core/modules/block/src/Tests/BlockHtmlTest.php b/core/modules/block/src/Tests/BlockHtmlTest.php
index c3a4eff8eeb..f9480c4f439 100644
--- a/core/modules/block/src/Tests/BlockHtmlTest.php
+++ b/core/modules/block/src/Tests/BlockHtmlTest.php
@@ -17,7 +17,7 @@ use Drupal\simpletest\WebTestBase;
class BlockHtmlTest extends WebTestBase {
/**
- * Modules to enable.
+ * Modules to install.
*
* @var array
*/
diff --git a/core/modules/block/src/Tests/BlockInvalidRegionTest.php b/core/modules/block/src/Tests/BlockInvalidRegionTest.php
index 246684b2d71..0f5d38da2e6 100644
--- a/core/modules/block/src/Tests/BlockInvalidRegionTest.php
+++ b/core/modules/block/src/Tests/BlockInvalidRegionTest.php
@@ -19,7 +19,7 @@ use Drupal\block\Entity\Block;
class BlockInvalidRegionTest extends WebTestBase {
/**
- * Modules to enable.
+ * Modules to install.
*
* @var array
*/
diff --git a/core/modules/block/src/Tests/BlockLanguageCacheTest.php b/core/modules/block/src/Tests/BlockLanguageCacheTest.php
index 432c387be95..45f6803d14b 100644
--- a/core/modules/block/src/Tests/BlockLanguageCacheTest.php
+++ b/core/modules/block/src/Tests/BlockLanguageCacheTest.php
@@ -19,7 +19,7 @@ use Drupal\simpletest\WebTestBase;
class BlockLanguageCacheTest extends WebTestBase {
/**
- * Modules to enable.
+ * Modules to install.
*
* @var array
*/
diff --git a/core/modules/block/src/Tests/BlockLanguageTest.php b/core/modules/block/src/Tests/BlockLanguageTest.php
index 6f22e68b8a8..958a08ea0b4 100644
--- a/core/modules/block/src/Tests/BlockLanguageTest.php
+++ b/core/modules/block/src/Tests/BlockLanguageTest.php
@@ -24,7 +24,7 @@ class BlockLanguageTest extends WebTestBase {
protected $adminUser;
/**
- * Modules to enable.
+ * Modules to install.
*
* @var array
*/
diff --git a/core/modules/block/src/Tests/BlockRenderOrderTest.php b/core/modules/block/src/Tests/BlockRenderOrderTest.php
index b21d5f0f6ce..4bae49a4f47 100644
--- a/core/modules/block/src/Tests/BlockRenderOrderTest.php
+++ b/core/modules/block/src/Tests/BlockRenderOrderTest.php
@@ -17,7 +17,7 @@ use Drupal\simpletest\WebTestBase;
class BlockRenderOrderTest extends WebTestBase {
/**
- * Modules to enable.
+ * Modules to install.
*
* @var array
*/
diff --git a/core/modules/block/src/Tests/BlockStorageUnitTest.php b/core/modules/block/src/Tests/BlockStorageUnitTest.php
index 6d0c9285fb2..07b0c782306 100644
--- a/core/modules/block/src/Tests/BlockStorageUnitTest.php
+++ b/core/modules/block/src/Tests/BlockStorageUnitTest.php
@@ -22,7 +22,7 @@ use Drupal\block\BlockInterface;
class BlockStorageUnitTest extends DrupalUnitTestBase {
/**
- * Modules to enable.
+ * Modules to install.
*
* @var array
*/
diff --git a/core/modules/block/src/Tests/BlockSystemBrandingTest.php b/core/modules/block/src/Tests/BlockSystemBrandingTest.php
index 58b04e036e0..7bf81e15af3 100644
--- a/core/modules/block/src/Tests/BlockSystemBrandingTest.php
+++ b/core/modules/block/src/Tests/BlockSystemBrandingTest.php
@@ -15,7 +15,7 @@ namespace Drupal\block\Tests;
class BlockSystemBrandingTest extends BlockTestBase {
/**
- * Modules to enable.
+ * Modules to install.
*
* @var array
*/
diff --git a/core/modules/block/src/Tests/BlockTemplateSuggestionsUnitTest.php b/core/modules/block/src/Tests/BlockTemplateSuggestionsUnitTest.php
index 0a041ab2a94..b7f532daec8 100644
--- a/core/modules/block/src/Tests/BlockTemplateSuggestionsUnitTest.php
+++ b/core/modules/block/src/Tests/BlockTemplateSuggestionsUnitTest.php
@@ -17,7 +17,7 @@ use Drupal\simpletest\WebTestBase;
class BlockTemplateSuggestionsUnitTest extends WebTestBase {
/**
- * Modules to enable.
+ * Modules to install.
*
* @var array
*/
diff --git a/core/modules/block/src/Tests/BlockTestBase.php b/core/modules/block/src/Tests/BlockTestBase.php
index 5f33eb92e28..2adb1ca556e 100644
--- a/core/modules/block/src/Tests/BlockTestBase.php
+++ b/core/modules/block/src/Tests/BlockTestBase.php
@@ -15,7 +15,7 @@ use Drupal\simpletest\WebTestBase;
abstract class BlockTestBase extends WebTestBase {
/**
- * Modules to enable.
+ * Modules to install.
*
* @var array
*/
diff --git a/core/modules/block/src/Tests/BlockTitleXSSTest.php b/core/modules/block/src/Tests/BlockTitleXSSTest.php
index 9eca4b53db3..5305df68683 100644
--- a/core/modules/block/src/Tests/BlockTitleXSSTest.php
+++ b/core/modules/block/src/Tests/BlockTitleXSSTest.php
@@ -17,7 +17,7 @@ use Drupal\simpletest\WebTestBase;
class BlockTitleXSSTest extends WebTestBase {
/**
- * Modules to enable.
+ * Modules to install.
*
* @var array
*/
diff --git a/core/modules/block/src/Tests/BlockUiTest.php b/core/modules/block/src/Tests/BlockUiTest.php
index bd0af2b92b3..ad949b74bfb 100644
--- a/core/modules/block/src/Tests/BlockUiTest.php
+++ b/core/modules/block/src/Tests/BlockUiTest.php
@@ -17,7 +17,7 @@ use Drupal\simpletest\WebTestBase;
class BlockUiTest extends WebTestBase {
/**
- * Modules to enable.
+ * Modules to install.
*
* @var array
*/
diff --git a/core/modules/block/src/Tests/BlockViewBuilderTest.php b/core/modules/block/src/Tests/BlockViewBuilderTest.php
index 486a2aa97e6..3760570f9a7 100644
--- a/core/modules/block/src/Tests/BlockViewBuilderTest.php
+++ b/core/modules/block/src/Tests/BlockViewBuilderTest.php
@@ -23,7 +23,7 @@ use Drupal\block\Entity\Block;
class BlockViewBuilderTest extends DrupalUnitTestBase {
/**
- * Modules to enable.
+ * Modules to install.
*
* @var array
*/
diff --git a/core/modules/block/src/Tests/NewDefaultThemeBlocksTest.php b/core/modules/block/src/Tests/NewDefaultThemeBlocksTest.php
index 84719767739..9ceab523fbf 100644
--- a/core/modules/block/src/Tests/NewDefaultThemeBlocksTest.php
+++ b/core/modules/block/src/Tests/NewDefaultThemeBlocksTest.php
@@ -17,7 +17,7 @@ use Drupal\simpletest\WebTestBase;
class NewDefaultThemeBlocksTest extends WebTestBase {
/**
- * Modules to enable.
+ * Modules to install.
*
* @var array
*/
diff --git a/core/modules/block/src/Tests/NonDefaultBlockAdminTest.php b/core/modules/block/src/Tests/NonDefaultBlockAdminTest.php
index c2e7e031dd9..563d12dc31f 100644
--- a/core/modules/block/src/Tests/NonDefaultBlockAdminTest.php
+++ b/core/modules/block/src/Tests/NonDefaultBlockAdminTest.php
@@ -17,7 +17,7 @@ use Drupal\simpletest\WebTestBase;
class NonDefaultBlockAdminTest extends WebTestBase {
/**
- * Modules to enable.
+ * Modules to install.
*
* @var array
*/
diff --git a/core/modules/block/src/Tests/Views/DisplayBlockTest.php b/core/modules/block/src/Tests/Views/DisplayBlockTest.php
index 02c900d6c1a..012c74ac4a3 100644
--- a/core/modules/block/src/Tests/Views/DisplayBlockTest.php
+++ b/core/modules/block/src/Tests/Views/DisplayBlockTest.php
@@ -32,7 +32,7 @@ class DisplayBlockTest extends ViewTestBase {
protected $strictConfigSchema = TRUE;
/**
- * Modules to enable.
+ * Modules to install.
*
* @var array
*/