function hook_social_node_title_prefix_articles_alter in Open Social 10.2.x
Same name and namespace in other branches
- 10.3.x modules/social_features/social_core/social_core.api.php \hook_social_node_title_prefix_articles_alter()
- 10.0.x modules/social_features/social_core/social_core.api.php \hook_social_node_title_prefix_articles_alter()
- 10.1.x modules/social_features/social_core/social_core.api.php \hook_social_node_title_prefix_articles_alter()
Provide a method to alter the article for a node. If it's a, or an or the.
Parameters
array $node_types: The filter format that is default.
2 invocations of hook_social_node_title_prefix_articles_alter()
- SocialCoreController::addPageTitle in modules/
social_features/ social_core/ src/ Controller/ SocialCoreController.php - The _title_callback for the node.add route.
- SocialGroupController::createFormTitle in modules/
social_features/ social_group/ src/ Controller/ SocialGroupController.php - The _title_callback for the entity.group_content.create_form route.
File
- modules/
social_features/ social_core/ social_core.api.php, line 33 - Hooks provided by the Social core module.
Code
function hook_social_node_title_prefix_articles_alter(array &$node_types) {
// The default is set to a.
// See SocialCoreController::addPageTitle for example.
$node_types['discussions'] = 'an';
}