Select.php in Open Social 8.2
Same filename and directory in other branches
- 8.9 themes/socialbase/src/Plugin/Preprocess/Select.php
- 8 themes/socialbase/src/Plugin/Preprocess/Select.php
- 8.3 themes/socialbase/src/Plugin/Preprocess/Select.php
- 8.4 themes/socialbase/src/Plugin/Preprocess/Select.php
- 8.5 themes/socialbase/src/Plugin/Preprocess/Select.php
- 8.6 themes/socialbase/src/Plugin/Preprocess/Select.php
- 8.7 themes/socialbase/src/Plugin/Preprocess/Select.php
- 8.8 themes/socialbase/src/Plugin/Preprocess/Select.php
Namespace
Drupal\socialbase\Plugin\PreprocessFile
themes/socialbase/src/Plugin/Preprocess/Select.phpView source
<?php
namespace Drupal\socialbase\Plugin\Preprocess;
use Drupal\bootstrap\Plugin\Preprocess\Select as BaseSelect;
/**
* Pre-processes variables for the "select" theme hook.
*
* @ingroup plugins_preprocess
*
* @BootstrapPreprocess("select")
*/
class Select extends BaseSelect {
/**
* {@inheritdoc}
*/
public function preprocess(array &$variables, $hook, array $info) {
parent::preprocess($variables, $hook, $info);
if (isset($variables['element']['#multiple']) && $variables['element']['#multiple'] == TRUE) {
$variables['multiselect'] = TRUE;
}
}
}