public static function Clipboard::element in FileField Sources 8
Theme the output of the clipboard element.
File
- src/
Plugin/ FilefieldSource/ Clipboard.php, line 144
Class
- Clipboard
- A FileField source plugin to allow transfer of files through the clipboard.
Namespace
Drupal\filefield_sources\Plugin\FilefieldSourceCode
public static function element($variables) {
$element = $variables['element'];
$output = '';
foreach (Element::children($element) as $key) {
if (!empty($element[$key])) {
$output .= \Drupal::service('renderer')
->render($element[$key]);
}
}
return '<div class="filefield-source filefield-source-clipboard clear-block">' . $output . '</div>';
}