From ba3813c07dc9d348e45081d38a644f282c156d0b Mon Sep 17 00:00:00 2001 From: Alex Pott Date: Fri, 13 Mar 2015 14:16:52 +0000 Subject: [PATCH] Issue #2447819 by pameeela: 'Custom Block' labels should use sentence case, not title case --- core/modules/block_content/src/Entity/BlockContent.php | 4 ++-- core/modules/block_content/src/Tests/BlockContentListTest.php | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/core/modules/block_content/src/Entity/BlockContent.php b/core/modules/block_content/src/Entity/BlockContent.php index bab5cd8f9b9..046640c1894 100644 --- a/core/modules/block_content/src/Entity/BlockContent.php +++ b/core/modules/block_content/src/Entity/BlockContent.php @@ -18,8 +18,8 @@ use Drupal\block_content\BlockContentInterface; * * @ContentEntityType( * id = "block_content", - * label = @Translation("Custom Block"), - * bundle_label = @Translation("Custom Block type"), + * label = @Translation("Custom block"), + * bundle_label = @Translation("Custom block type"), * handlers = { * "storage" = "Drupal\Core\Entity\Sql\SqlContentEntityStorage", * "storage_schema" = "Drupal\block_content\BlockContentStorageSchema", diff --git a/core/modules/block_content/src/Tests/BlockContentListTest.php b/core/modules/block_content/src/Tests/BlockContentListTest.php index 57c9d2776fa..03b60e37056 100644 --- a/core/modules/block_content/src/Tests/BlockContentListTest.php +++ b/core/modules/block_content/src/Tests/BlockContentListTest.php @@ -107,7 +107,7 @@ class BlockContentListTest extends BlockContentTestBase { $this->assertNoFieldByXpath('//td', $new_label, 'No label found for deleted custom block.'); // Confirm that the empty text is displayed. - $this->assertText(t('There is no Custom Block yet.')); + $this->assertText(t('There is no Custom block yet.')); } }