Links.php in Open Social 8.2
Same filename and directory in other branches
- 8.9 themes/socialbase/src/Plugin/Preprocess/Links.php
- 8 themes/socialbase/src/Plugin/Preprocess/Links.php
- 8.3 themes/socialbase/src/Plugin/Preprocess/Links.php
- 8.4 themes/socialbase/src/Plugin/Preprocess/Links.php
- 8.5 themes/socialbase/src/Plugin/Preprocess/Links.php
- 8.6 themes/socialbase/src/Plugin/Preprocess/Links.php
- 8.7 themes/socialbase/src/Plugin/Preprocess/Links.php
- 8.8 themes/socialbase/src/Plugin/Preprocess/Links.php
Namespace
Drupal\socialbase\Plugin\PreprocessFile
themes/socialbase/src/Plugin/Preprocess/Links.phpView source
<?php
namespace Drupal\socialbase\Plugin\Preprocess;
use Drupal\bootstrap\Plugin\Preprocess\PreprocessBase;
use Drupal\bootstrap\Utility\Variables;
/**
* Pre-processes variables for the "links" theme hook.
*
* @ingroup plugins_preprocess
*
* @BootstrapPreprocess("links")
*/
class Links extends PreprocessBase {
/**
* {@inheritdoc}
*/
public function preprocessVariables(Variables $variables) {
unset($variables['links']['comment-add']);
unset($variables['links']['comment-comments']);
}
}