Change Drupal 8 'Powered By' block | Drupal 8

Change Drupal 8 'Powered By' block

Submitted by editor on Tue, 05/31/2016 - 13:30
Question

How to edit the Drupal 8 system's "Powered By" block ?

You can't change the body of this block fron the user interface. But you can do that using a small custom module using hook_block_view_alter().

Example: in the yourmodule.module

function yourmodule_block_view_alter(array &$build, \Drupal\Core\Block\BlockPluginInterface $block) {
  if ($block->getBaseId() === 'system_powered_by_block') {
    $build['#pre_render'][] = '_yourmodule_block_poweredby_prerender';
  }
}

function _yourmodule_block_poweredby_prerender(array $build) {
    $build['content']['#markup'] = 'Your text';
    return $build;
}

Then clear the cache

NOTE: You can also remove the system 'Powered by Drupal' block and replace by a custom block.

Comments

Eva (not verified)

Tue, 01/23/2018 - 11:09

I liked your module.very useful. I have to try this. Thank you for sharing.expecting much module from you.Use <a href="https://www.custompapersonline.org/"> go to this website </a>website for academic work.

Juan Becker (not verified)

Mon, 02/19/2018 - 09:55

Hello here I'm Juan Becker. I am working as a professor, And also I'm very interested in Writing field. First of all Thank you for this blog.  I liked your module its very useful and it made me happy and confident.I expect more  informational blog from your side. I hope I will see a new and informative blog as soon as possible. Now I'm going to share my website with you, which is related to educational field like, Essay writing. 
http://www.quickcustomessaywriting.com/

Anonymous (not verified)

Wed, 03/21/2018 - 16:56

gregorychason (not verified)

Thu, 11/15/2018 - 06:37

An essay is nothing but some kind of writing in which the contents are completely based on the writer’s choice. Now a day’s essay plays an important role in our education system. But most of the students are very weak in essay writing. More than fifty percentages of their assignments are based on the essay writing. The best essay writing service is the main solution for this problem.Essay writing is the very common question in exams also. In my opinion most of the students who are weak in essay writing are also not good in general knowledge. If they are not good in general knowledge they can’t able to write good essays on different topics. Once the student have depend a best essay writing service for their assignment, it will help for the next time when they got the similar task. These services will help the students to get marks they needed. Every writing service will provide the quality checking after the completion of writing. Essay writing is a time consuming task. 

nawi212 (not verified)

Fri, 12/14/2018 - 15:43

tes saja lah
htlm code
<a href="http://www.undangancinta.com">undangan pernikahan</a>
<a href="http://www.undangancinta.com">undangan pernikahan unik</a>
<a href="http://www.undangancinta.com">undangan pernikahan unik</a>

ini cuma pake ling
http://www.undangancinta.com

bb code 
[url=http://www.undangancinta.com]undangan pernikahan[/url]
[url=http://www.undangancinta.com]undangan pernikahan simple[/url]
[url=http://www.undangancinta.com]undangan pernikahan unik[/url]

 

tes saja lah htlm code undangan pernikahan undangan pernikahan unik undangan pernikahan unik ini cuma pake ling http://www.undangancinta.com bb code [url=http://www.undangancinta.com]undangan pernikahan[/url] [url=http://www.undangancinta.com]undangan pernikahan simple[/url] [url=http://www.undangancinta.com]undangan pernikahan unik[/url]

R HILDAN M (not verified)

Fri, 12/14/2018 - 16:46

ling12 undangan pernikahan modern undangan pernikahan online undangan pernikahan undangan pernikahan amplop surat undangan pernikahan simple undangan pernikahan murah undangan pernikahan unik undangan pernikahan artis undangan pernikahan modern undangan pernikahan artis undangan pernikahan arab undangan pernikahan undangan pernikahan Toko Plat Bordes Toko Plat Bordes Pabrik bondek Pabrik besi unp undangan pernikahan cantik Distributor Besi Hollow Jual Besi Hollow Baja Toko besi hollow Distributor besi beton Sni Ulir Polos Agen Plat Bordes Agen Plat Bordes Pabrik Plat kapal besi baja bki krakatau steel Pabrik besi siku undangan pernikahan simple Distributor Wiremesh Harga Besi Hollow Baja Agen besi hollow Distributor besi beton ais Pabrik Plat Bordes Pabrik Plat Bordes Pabrik besi siku Pabrik Plat besi plat kapal undangan pernikahan mewah Distributor Besi Pipa Baja Schedule 80 Pabrik Besi Hollow Baja Pabrik besi hollow Distributor besi beton Distributor Wiremesh Besi Distributor Wiremesh Besi Pabrik pipa besi baja sch 40 sch 80 Pabrik besi h beam baja undangan pernikahan cute Distributor Besi Pipa Baja Schedule 40 Distributor Besi Beton Distributor pipa besi Harga Wiremesh Besi Harga Wiremesh Besi Pabrik Plat besi Pabrik besi cnp undangan pernikahan biru Distributor Pipa Besi Hitam Medium Supplier Besi Beton Harga pipa besi www.pusatbesibaja.co.id Jual Wiremesh Besi Jual Wiremesh Besi Pabrik besi h beam www.gudangbesibaja.com undangan pernikahan buatan sendiri Distributor Besi Wf Agen Besi Beton Jual pipa besi www.pusatbesibaja.com Supplier Wiremesh Besi Supplier Wiremesh Besi Pabrik besi wf

Add new comment