DropdownActions.php in Open Social 8.5
File
themes/socialbase/src/Plugin/Preprocess/DropdownActions.php
View source
<?php
namespace Drupal\socialbase\Plugin\Preprocess;
use Drupal\bootstrap\Utility\Variables;
class DropdownActions extends Dropdown {
protected function preprocessLinks(Variables $variables) {
parent::preprocessLinks($variables);
$variables['btn_context'] = 'actions';
$variables->toggle['#split_button_attributes']['class'][] = 'pull-right';
unset($variables->toggle['#attributes']['class']);
}
}
Classes
Name |
Description |
DropdownActions |
Pre-processes variables for "bootstrap_dropdown__operations__actions" hook. |