You are here

function example_entity_info_alter in Coder 8.3

Same name and namespace in other branches
  1. 8.3.x tests/Drupal/WhiteSpace/ScopeClosingBraceUnitTest.inc \example_entity_info_alter()

ScopeIndentSniff already handles this correctly.

File

tests/Drupal/WhiteSpace/ScopeClosingBraceUnitTest.inc, line 11
Test file.

Code

function example_entity_info_alter(&$entity_info) {
  $entity_info['node']['view modes']['new_display_machine_name'] = array(
    'label' => t('New Display Name'),
    'custom settings' => '',
  );
}