Skip to content

Instantly share code, notes, and snippets.

@quexpl
quexpl / my_module.install.php
Last active May 4, 2018 00:44
Drupal 8: Create and update custom block in hook_update()
<?php
/**
* Keep yours custom block in code!
*
* This approach let you avoid this error:
* "This block is broken or missing. You may be missing content or you might need to enable the original module."
*/
/**

Keybase proof

I hereby claim:

  • I am quexpl on github.
  • I am quex (https://keybase.io/quex) on keybase.
  • I have a public key ASBy-YDCf-HmzWEi16tdZo_mDJ7QkJ9h2SbcXxrrc4zb4Ao

To claim this, I am signing this object: