<?php /** * Implements hook_install(). */ function baross_core_install() { if (!\Drupal::moduleHandler()->moduleExists('path_alias')) { \Drupal::database()->delete('key_value') ->condition('name', 'path_alias') ->execute(); } } /** * Implements hook_update_N(). */ function baross_core_update_8002(&$sandbox) { \Drupal::database()->schema()->dropTable('menu_link_content_revision'); }
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter