public function Links::preprocessVariables in Open Social 8
Same name and namespace in other branches
- 8.9 themes/socialbase/src/Plugin/Preprocess/Links.php \Drupal\socialbase\Plugin\Preprocess\Links::preprocessVariables()
- 8.2 themes/socialbase/src/Plugin/Preprocess/Links.php \Drupal\socialbase\Plugin\Preprocess\Links::preprocessVariables()
- 8.3 themes/socialbase/src/Plugin/Preprocess/Links.php \Drupal\socialbase\Plugin\Preprocess\Links::preprocessVariables()
- 8.4 themes/socialbase/src/Plugin/Preprocess/Links.php \Drupal\socialbase\Plugin\Preprocess\Links::preprocessVariables()
- 8.5 themes/socialbase/src/Plugin/Preprocess/Links.php \Drupal\socialbase\Plugin\Preprocess\Links::preprocessVariables()
- 8.6 themes/socialbase/src/Plugin/Preprocess/Links.php \Drupal\socialbase\Plugin\Preprocess\Links::preprocessVariables()
- 8.7 themes/socialbase/src/Plugin/Preprocess/Links.php \Drupal\socialbase\Plugin\Preprocess\Links::preprocessVariables()
- 8.8 themes/socialbase/src/Plugin/Preprocess/Links.php \Drupal\socialbase\Plugin\Preprocess\Links::preprocessVariables()
Preprocess the variables array.
Parameters
\Drupal\bootstrap\Utility\Variables $variables: The Variables object.
Overrides PreprocessBase::preprocessVariables
File
- themes/
socialbase/ src/ Plugin/ Preprocess/ Links.php, line 20
Class
- Links
- Pre-processes variables for the "links" theme hook.
Namespace
Drupal\socialbase\Plugin\PreprocessCode
public function preprocessVariables(Variables $variables) {
unset($variables['links']['comment-add']);
unset($variables['links']['comment-comments']);
}