<?php

/**
 * @file
 * CivicTheme iFrame paragraph component.
 */

declare(strict_types=1);

/**
 * Implements template_preprocess_paragraph().
 */
function civictheme_preprocess_paragraph__civictheme_iframe(array &$variables): void {
  _civictheme_preprocess_paragraph__paragraph_field__theme($variables);
  _civictheme_preprocess_paragraph__paragraph_field__vertical_spacing($variables);
  _civictheme_preprocess_paragraph__paragraph_field__background($variables);

  $variables['url'] = civictheme_get_field_value($variables['paragraph'], 'field_c_p_url');
  $variables['width'] = civictheme_get_field_value($variables['paragraph'], 'field_c_p_width');
  $variables['height'] = civictheme_get_field_value($variables['paragraph'], 'field_c_p_height');
}
