Issue #3029819 by tim.plunkett, bnjmnm, tedbow, xjm: Do not allow Page Title block to be placed in Layout Builder until it works properly

8.7.x
xjm 2019-01-31 16:29:57 -06:00
parent 0e165d7d0a
commit ca8a550c05
2 changed files with 9 additions and 0 deletions

View File

@ -174,6 +174,14 @@ function layout_builder_cron() {
}
}
/**
* Implements hook_plugin_filter_TYPE__CONSUMER_alter().
*/
function layout_builder_plugin_filter_block__layout_builder_alter(array &$definitions, array $extra) {
// @todo Restore the page title block in https://www.drupal.org/node/2938129.
unset($definitions['page_title_block']);
}
/**
* Implements hook_plugin_filter_TYPE_alter().
*/

View File

@ -514,6 +514,7 @@ class LayoutBuilderTest extends BrowserTestBase {
// Verify that blocks explicitly removed are not present.
$assert_session->linkNotExists('Help');
$assert_session->linkNotExists('Sticky at top of lists');
$assert_session->linkNotExists('Page title');
// Verify that Changed block is not present on first section.
$assert_session->linkNotExists('Changed');