You are here

function paragraphs_previewer_preprocess_html__paragraphs_previewer in Paragraphs Previewer 8

Implements hook_preprocess_html().

File

./paragraphs_previewer.module, line 26
Provides a rendered preview of a paragraphs item on an entity form.

Code

function paragraphs_previewer_preprocess_html__paragraphs_previewer(&$variables) {
  unset($variables['page_top']);
  unset($variables['page_bottom']);
  if (isset($variables['html_attributes'])) {
    $variables['html_attributes']
      ->addClass('paragraphs-previewer-html');
  }
  $variables['attributes']['class'][] = 'paragraphs-previewer';
}