diff --git a/core/modules/block_content/block_content.pages.inc b/core/modules/block_content/block_content.pages.inc index 187ce68..23a7dea 100644 --- a/core/modules/block_content/block_content.pages.inc +++ b/core/modules/block_content/block_content.pages.inc @@ -28,7 +28,7 @@ function template_preprocess_block_content_add_list(&$variables) { foreach ($variables['content'] as $type) { $variables['types'][$type->id()] = array( 'link' => \Drupal::l($type->label(), new Url('block_content.add_form', array('block_content_type' => $type->id()), array('query' => $query))), - 'description' => Xss::filterAdmin($type->description), + 'description' => Xss::filterAdmin($type->getDescription()), 'title' => $type->label(), 'localized_options' => array( 'query' => $query, diff --git a/core/modules/block_content/src/BlockContentInterface.php b/core/modules/block_content/src/BlockContentInterface.php index 87bf7c6..b5e40b7 100644 --- a/core/modules/block_content/src/BlockContentInterface.php +++ b/core/modules/block_content/src/BlockContentInterface.php @@ -48,9 +48,9 @@ public function setRevisionLog($revision_log); /** * Sets the theme value. * - * When creating a new custom block from the block library, the user is + * When creating a new block content block from the block library, the user is * redirected to the configure form for that block in the given theme. The - * theme is stored against the block when the custom block add form is shown. + * theme is stored against the block when the block content add form is shown. * * @param string $theme * The theme name. @@ -63,9 +63,9 @@ public function setTheme($theme); /** * Gets the theme value. * - * When creating a new custom block from the block library, the user is + * When creating a new block content block from the block library, the user is * redirected to the configure form for that block in the given theme. The - * theme is stored against the block when the custom block add form is shown. + * theme is stored against the block when the block content add form is shown. * * @return string * The theme name. @@ -81,10 +81,10 @@ public function getTheme(); public function getInstances(); /** - * Return the custom block type (bundle) name. + * Return the block content type (bundle) name. * * @return string - * The name of the custom block type (bundle). + * The name of the block content type (bundle). */ public function getBlockContentType(); diff --git a/core/modules/block_content/src/BlockContentTypeListBuilder.php b/core/modules/block_content/src/BlockContentTypeListBuilder.php index 7af28b1..2a51159 100644 --- a/core/modules/block_content/src/BlockContentTypeListBuilder.php +++ b/core/modules/block_content/src/BlockContentTypeListBuilder.php @@ -45,7 +45,7 @@ public function buildHeader() { */ public function buildRow(EntityInterface $entity) { $row['type'] = $entity->link(); - $row['description'] = Xss::filterAdmin($entity->description); + $row['description'] = Xss::filterAdmin($entity->getDescription()); return $row + parent::buildRow($entity); } diff --git a/core/modules/block_content/src/Entity/BlockContent.php b/core/modules/block_content/src/Entity/BlockContent.php index 090e87c..5205701 100644 --- a/core/modules/block_content/src/Entity/BlockContent.php +++ b/core/modules/block_content/src/Entity/BlockContent.php @@ -138,7 +138,7 @@ public function delete() { * {@inheritdoc} */ public function getBlockContentType() { - return $this->get('type')->value; + return $this->bundle(); } /** diff --git a/core/themes/seven/seven.theme b/core/themes/seven/seven.theme index 76ddfcc..499ff4f 100644 --- a/core/themes/seven/seven.theme +++ b/core/themes/seven/seven.theme @@ -99,7 +99,7 @@ function seven_preprocess_block_content_add_list(&$variables) { if (!empty($variables['content'])) { foreach ($variables['content'] as $type) { $variables['types'][$type->id()]['label'] = String::checkPlain($type->label()); - $variables['types'][$type->id()]['description'] = Xss::filterAdmin($type->description); + $variables['types'][$type->id()]['description'] = Xss::filterAdmin($type->getDescription()); $options = array('query' => \Drupal::request()->query->all()); $variables['types'][$type->id()]['url'] = \Drupal::url('block_content.add_form', array('block_content_type' => $type->id()), $options); }