Details.php in Open Social 8.7
Same filename and directory in other branches
- 8.9 themes/socialbase/src/Plugin/Preprocess/Details.php
- 8 themes/socialbase/src/Plugin/Preprocess/Details.php
- 8.2 themes/socialbase/src/Plugin/Preprocess/Details.php
- 8.3 themes/socialbase/src/Plugin/Preprocess/Details.php
- 8.4 themes/socialbase/src/Plugin/Preprocess/Details.php
- 8.5 themes/socialbase/src/Plugin/Preprocess/Details.php
- 8.6 themes/socialbase/src/Plugin/Preprocess/Details.php
- 8.8 themes/socialbase/src/Plugin/Preprocess/Details.php
Namespace
Drupal\socialbase\Plugin\PreprocessFile
themes/socialbase/src/Plugin/Preprocess/Details.phpView source
<?php
namespace Drupal\socialbase\Plugin\Preprocess;
use Drupal\bootstrap\Plugin\Preprocess\PreprocessBase;
/**
* Pre-processes variables for the "details" theme hook.
*
* @ingroup plugins_preprocess
*
* @BootstrapPreprocess("details")
*/
class Details extends PreprocessBase {
/**
* {@inheritdoc}
*/
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;
}
}
}