You are here

function paragraphs_grid_theme_suggestions_alter in Paragraphs grid 8

Implements hook_theme_suggestions_alter().

Add a theme hook selected by the formatter.

File

./paragraphs_grid.module, line 64
Contains paragraphs_grid.module.

Code

function paragraphs_grid_theme_suggestions_alter(array &$suggestions, array $variables, $hook) {
  if ($hook == 'field' && $variables['element']['#field_type'] == 'entity_reference_revisions') {
    $suggestions[] = $hook . '__' . $variables['element']['#formatter'];
  }
}