Changes for core/modules/block_place/block_place.install: 36 added lines, 0 removed lines.
Original line number
Diff line number
Diff line
<?php
/**
* @file
* Contains install and update functions for Place Blocks.
*/
/**
* Implements hook_requirements().
*/
functionblock_place_requirements($phase){
$requirements=[];
// Notify about the module being deprecated.
if($phase=='runtime'){
$requirements['block_place']=[
'title'=>t('Place blocks'),
'severity'=>REQUIREMENT_INFO,
'description'=>t('Place Blocks (Core, Experimental) is deprecated in Drupal 8.8.0 and will be removed in Drupal 9.0.0. Using Layout Builder (available in Drupal 8.7.0) module is recommended. See <a href=":change-record">the change record</a>. Alternatively you may use the contrib module <a href=":contrib-link">Place Blocks</a>.',[
\Drupal::messenger()->addWarning(t('Place Blocks (Core, Experimental) is deprecated in Drupal 8.8.0 and will be removed in Drupal 9.0.0. Using Layout Builder (available in Drupal 8.7.0) module is recommended. See <a href=":change-record">the change record</a>. Alternatively you may use the contrib module <a href=":contrib-link">Place Block</a>.',[
Changes for core/modules/block_place/block_place.libraries.yml: 2 added lines, 0 removed lines.
Original line number
Diff line number
Diff line
@@ -3,9 +3,11 @@ drupal.block_place:
css:
theme:
css/block-place.css:{}
deprecated:The "%library_id%" asset is deprecated in drupal:8.8.0 and will be removed in drupal:9.0.0. Using Layout Builder (available in drupal:8.7.0) module is recommended. See https://www.drupal.org/node/3081957. Alternatively you may use the contrib module Place Blocks.
drupal.block_place.icons:
version:VERSION
css:
theme:
css/block-place.icons.theme.css:{}
deprecated:The "%library_id%" asset is deprecated in drupal:8.8.0 and will be removed in drupal:9.0.0. Using Layout Builder (available in drupal:8.7.0) module is recommended. See https://www.drupal.org/node/3081957. Alternatively you may use the contrib module Place Blocks.
Changes for core/modules/block_place/block_place.module: 15 added lines, 0 removed lines.
Original line number
Diff line number
Diff line
@@ -3,8 +3,19 @@
/**
* @file
* Controls the placement of blocks from all pages.
*
* @deprecated in drupal:8.8.0 and is removed from drupal:9.0.0.
* See each function in the file for individual deprecation notices with
* upgrade instructions.
*
* @see https://www.drupal.org/node/3081957
*/
@trigger_error('The Place Blocks module is deprecated in drupal:8.8.0 and is removed
from drupal:9.0.0. Using Layout Builder (available in Drupal 8.7.0) module is
recommended. See https://www.drupal.org/node/3081957. Alternatively you may use
the contrib module Place Blocks.',E_USER_DEPRECATED);
useDrupal\Core\Routing\RouteMatchInterface;
useDrupal\Core\Url;
@@ -15,6 +26,10 @@ function block_place_help($route_name, RouteMatchInterface $route_match) {
switch($route_name){
case'help.page.block_place':
$output='<h3>'.t('About').'</h3>';
$output.='<p><strong>'.t('Place Blocks (Core, Experimental) is deprecated in Drupal 8.8.0 and will be removed in Drupal 9.0.0. Using Layout Builder (available in Drupal 8.7.0) module is recommended. See <a href=":change-record">the change record</a>. Alternatively you may use the contrib module <a href=":contrib-link">Place Blocks</a>.',[
$output.='<p>'.t('The Place Blocks module allows you to place blocks from every page. For more information, see the <a href=":blocks-documentation">online documentation for the Place Blocks module</a>.',[':blocks-documentation'=>'https://www.drupal.org/documentation/modules/block_place/']).'</p>';
$output.='<h3>'.t('Uses').'</h3>';
$output.='<p>'.t('Block placement is specific to each theme on your site. This module allows you to place blocks in the context of your content pages.').'</p>';
Changes for core/modules/block_place/block_place.services.yml: 1 added line, 0 removed lines.
Original line number
Diff line number
Diff line
@@ -4,3 +4,4 @@ services:
arguments:['@request_stack','@current_user']
tags:
-{name:event_subscriber}
deprecated:The "%service_id%" service is deprecated in drupal:8.8.0 and will be removed in drupal:9.0.0. Using Layout Builder (available in drupal:8.7.0) module is recommended. See https://www.drupal.org/node/3081957. Alternatively you may use the contrib module Place Blocks.