function hook_social_follow_taxonomy_fields_alter in Open Social 10.3.x
Same name and namespace in other branches
- 10.0.x modules/social_features/social_follow_taxonomy/social_follow_taxonomy.api.php \hook_social_follow_taxonomy_fields_alter()
- 10.1.x modules/social_features/social_follow_taxonomy/social_follow_taxonomy.api.php \hook_social_follow_taxonomy_fields_alter()
- 10.2.x modules/social_features/social_follow_taxonomy/social_follow_taxonomy.api.php \hook_social_follow_taxonomy_fields_alter()
Alter list of fields that need to check in activity context.
Parameters
array $fields_to_check: List of field names.
See also
\Drupal\social_follow_taxonomy\Plugin\ActivityContext\FollowTaxonomyActivityContext
1 invocation of hook_social_follow_taxonomy_fields_alter()
- FollowTaxonomyActivityContext::getListOfTagsFields in modules/
social_features/ social_follow_taxonomy/ src/ Plugin/ ActivityContext/ FollowTaxonomyActivityContext.php - Returns list of field names that needs to check for entity validation.
File
- modules/
social_features/ social_follow_taxonomy/ social_follow_taxonomy.api.php, line 74 - Hooks provided by the Social Follow Taxonomy Term module.
Code
function hook_social_follow_taxonomy_fields_alter(array &$fields_to_check) {
$fields_to_check[] = 'social_tagging';
}