function hook_social_content_type_alter in Open Social 8.8
Same name and namespace in other branches
- 8.9 modules/social_features/social_core/social_core.api.php \hook_social_content_type_alter()
- 10.3.x modules/social_features/social_core/social_core.api.php \hook_social_content_type_alter()
- 10.0.x modules/social_features/social_core/social_core.api.php \hook_social_content_type_alter()
- 10.1.x modules/social_features/social_core/social_core.api.php \hook_social_content_type_alter()
- 10.2.x modules/social_features/social_core/social_core.api.php \hook_social_content_type_alter()
Provide a method to alter array on content types used in open social.
Parameters
array $page_to_exclude: Array of content types.
1 invocation of hook_social_content_type_alter()
- Page::preprocess in themes/
socialbase/ src/ Plugin/ Preprocess/ Page.php - Preprocess theme hook variables.
File
- modules/
social_features/ social_core/ social_core.api.php, line 60 - Hooks provided by the Social core module.
Code
function hook_social_content_type_alter(array &$page_to_exclude) {
$page_to_exclude[] = 'article';
}