You are here

function classy_preprocess_image_widget in Drupal 8

Same name and namespace in other branches
  1. 9 core/themes/classy/classy.theme \classy_preprocess_image_widget()

Implements hook_preprocess_image_widget().

File

core/themes/classy/classy.theme, line 39
Functions to support theming in the Classy theme.

Code

function classy_preprocess_image_widget(array &$variables) {
  $data =& $variables['data'];
  if (isset($data['preview']['#access']) && $data['preview']['#access'] === FALSE) {
    unset($data['preview']);
  }
}