DataPolicyDataPolicy.php in Open Social 8.7
Same filename and directory in other branches
- 8.9 themes/socialbase/src/Plugin/Preprocess/DataPolicyDataPolicy.php
- 8.2 themes/socialbase/src/Plugin/Preprocess/DataPolicyDataPolicy.php
- 8.3 themes/socialbase/src/Plugin/Preprocess/DataPolicyDataPolicy.php
- 8.4 themes/socialbase/src/Plugin/Preprocess/DataPolicyDataPolicy.php
- 8.5 themes/socialbase/src/Plugin/Preprocess/DataPolicyDataPolicy.php
- 8.6 themes/socialbase/src/Plugin/Preprocess/DataPolicyDataPolicy.php
- 8.8 themes/socialbase/src/Plugin/Preprocess/DataPolicyDataPolicy.php
Namespace
Drupal\socialbase\Plugin\PreprocessFile
themes/socialbase/src/Plugin/Preprocess/DataPolicyDataPolicy.phpView source
<?php
namespace Drupal\socialbase\Plugin\Preprocess;
use Drupal\bootstrap\Plugin\Preprocess\PreprocessBase;
use Drupal\bootstrap\Utility\Variables;
/**
* Pre-processes variables for the "data_policy_data_policy" theme hook.
*
* @ingroup plugins_preprocess
*
* @BootstrapPreprocess("data_policy_data_policy")
*/
class DataPolicyDataPolicy extends PreprocessBase {
/**
* {@inheritdoc}
*/
protected function preprocessVariables(Variables $variables) {
if (!\Drupal::request()->request
->has('js')) {
$variables->attributes['class'][] = 'card__body';
}
}
}
Classes
Name![]() |
Description |
---|---|
DataPolicyDataPolicy | Pre-processes variables for the "data_policy_data_policy" theme hook. |