protected function DataPolicyDataPolicy::preprocessVariables in Open Social 8.4
Same name and namespace in other branches
- 8.9 themes/socialbase/src/Plugin/Preprocess/DataPolicyDataPolicy.php \Drupal\socialbase\Plugin\Preprocess\DataPolicyDataPolicy::preprocessVariables()
- 8.2 themes/socialbase/src/Plugin/Preprocess/DataPolicyDataPolicy.php \Drupal\socialbase\Plugin\Preprocess\DataPolicyDataPolicy::preprocessVariables()
- 8.3 themes/socialbase/src/Plugin/Preprocess/DataPolicyDataPolicy.php \Drupal\socialbase\Plugin\Preprocess\DataPolicyDataPolicy::preprocessVariables()
- 8.5 themes/socialbase/src/Plugin/Preprocess/DataPolicyDataPolicy.php \Drupal\socialbase\Plugin\Preprocess\DataPolicyDataPolicy::preprocessVariables()
- 8.6 themes/socialbase/src/Plugin/Preprocess/DataPolicyDataPolicy.php \Drupal\socialbase\Plugin\Preprocess\DataPolicyDataPolicy::preprocessVariables()
- 8.7 themes/socialbase/src/Plugin/Preprocess/DataPolicyDataPolicy.php \Drupal\socialbase\Plugin\Preprocess\DataPolicyDataPolicy::preprocessVariables()
- 8.8 themes/socialbase/src/Plugin/Preprocess/DataPolicyDataPolicy.php \Drupal\socialbase\Plugin\Preprocess\DataPolicyDataPolicy::preprocessVariables()
Preprocess the variables array.
Parameters
\Drupal\bootstrap\Utility\Variables $variables: The Variables object.
Overrides PreprocessBase::preprocessVariables
File
- themes/
socialbase/ src/ Plugin/ Preprocess/ DataPolicyDataPolicy.php, line 20
Class
- DataPolicyDataPolicy
- Pre-processes variables for the "data_policy_data_policy" theme hook.
Namespace
Drupal\socialbase\Plugin\PreprocessCode
protected function preprocessVariables(Variables $variables) {
if (!\Drupal::request()->request
->has('js')) {
$variables->attributes['class'][] = 'card__body';
}
}