public function Details::preprocess in Open Social 8.8
Same name and namespace in other branches
- 8.9 themes/socialbase/src/Plugin/Preprocess/Details.php \Drupal\socialbase\Plugin\Preprocess\Details::preprocess()
- 8 themes/socialbase/src/Plugin/Preprocess/Details.php \Drupal\socialbase\Plugin\Preprocess\Details::preprocess()
- 8.2 themes/socialbase/src/Plugin/Preprocess/Details.php \Drupal\socialbase\Plugin\Preprocess\Details::preprocess()
- 8.3 themes/socialbase/src/Plugin/Preprocess/Details.php \Drupal\socialbase\Plugin\Preprocess\Details::preprocess()
- 8.4 themes/socialbase/src/Plugin/Preprocess/Details.php \Drupal\socialbase\Plugin\Preprocess\Details::preprocess()
- 8.5 themes/socialbase/src/Plugin/Preprocess/Details.php \Drupal\socialbase\Plugin\Preprocess\Details::preprocess()
- 8.6 themes/socialbase/src/Plugin/Preprocess/Details.php \Drupal\socialbase\Plugin\Preprocess\Details::preprocess()
- 8.7 themes/socialbase/src/Plugin/Preprocess/Details.php \Drupal\socialbase\Plugin\Preprocess\Details::preprocess()
Preprocess theme hook variables.
Parameters
array $variables: The variables array, passed by reference (modify in place).
string $hook: The name of the theme hook.
array $info: The theme hook info array.
Overrides PreprocessBase::preprocess
File
- themes/
socialbase/ src/ Plugin/ Preprocess/ Details.php, line 19
Class
- Details
- Pre-processes variables for the "details" theme hook.
Namespace
Drupal\socialbase\Plugin\PreprocessCode
public function preprocess(array &$variables, $hook, array $info) {
parent::preprocess($variables, $hook, $info);
// Do not display the details title in file upload widget.
if (isset($variables['element']['#theme']) && $variables['element']['#theme'] == 'file_widget_multiple') {
$variables['title'] = FALSE;
}
}