annotate vendor/chi-teck/drupal-code-generator/templates/d7/hook/block_info.twig @ 5:12f9dff5fda9 tip

Update to Drupal core 8.7.1
author Chris Cannam
date Thu, 09 May 2019 15:34:47 +0100
parents c75dbcec494b
children
rev   line source
Chris@0 1 /**
Chris@0 2 * Implements hook_block_info().
Chris@0 3 */
Chris@0 4 function {{ machine_name }}_block_info() {
Chris@0 5 // This example comes from node.module.
Chris@0 6 $blocks['syndicate'] = array(
Chris@0 7 'info' => t('Syndicate'),
Chris@0 8 'cache' => DRUPAL_NO_CACHE
Chris@0 9 );
Chris@0 10
Chris@0 11 $blocks['recent'] = array(
Chris@0 12 'info' => t('Recent content'),
Chris@0 13 // DRUPAL_CACHE_PER_ROLE will be assumed.
Chris@0 14 );
Chris@0 15
Chris@0 16 return $blocks;
Chris@0 17 }