function paragraphs_grid_theme_registry_alter in Paragraphs grid 8
Implements hook_theme_registry_alter().
File
- ./
paragraphs_grid.module, line 73 - Contains paragraphs_grid.module.
Code
function paragraphs_grid_theme_registry_alter(&$theme_registry) {
$theme_registry['field__entity_reference_revisions'] = $theme_registry['field'];
$theme_registry['field__entity_reference_revisions']['template'] = 'field--paragraphs-grid-formatter';
$theme_registry['field__entity_reference_revisions']['path'] = drupal_get_path('module', 'paragraphs_grid') . '/templates';
}