function block_test_block_info

Implements hook_block_info().

File

drupal/core/modules/block/tests/block_test.module, line 19
Provide test blocks.

Code

function block_test_block_info() {
  $blocks['test_cache'] = array(
    'info' => t('Test block caching'),
    'cache' => state()
      ->get('block_test.caching') ?: DRUPAL_CACHE_PER_ROLE,
  );
  $blocks['test_html_id'] = array(
    'info' => t('Test block html id'),
  );
  return $blocks;
}