By editor, 31 May, 2016 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. Tags Drupal 8 Code Module Comments You must have JavaScript enabled to use this form. Your name Subject Comment About text formats Plain text No HTML tags allowed. Lines and paragraphs break automatically. Web page addresses and email addresses turn into links automatically.
Comments