You are here

function social_follow_taxonomy_terms_list in Open Social 10.3.x

Same name and namespace in other branches
  1. 10.0.x modules/social_features/social_follow_taxonomy/social_follow_taxonomy.module \social_follow_taxonomy_terms_list()
  2. 10.1.x modules/social_features/social_follow_taxonomy/social_follow_taxonomy.module \social_follow_taxonomy_terms_list()
  3. 10.2.x modules/social_features/social_follow_taxonomy/social_follow_taxonomy.module \social_follow_taxonomy_terms_list()

Provide an array of terms related to entity.

Parameters

Drupal\Core\Entity\EntityInterface $entity: Related entity.

Return value

array List of term ids.

3 calls to social_follow_taxonomy_terms_list()
FollowTaxonomyActivityContext::taxonomyTermsList in modules/social_features/social_follow_taxonomy/src/Plugin/ActivityContext/FollowTaxonomyActivityContext.php
List of taxonomy terms.
social_follow_taxonomy_preprocess_activity in modules/social_features/social_follow_taxonomy/social_follow_taxonomy.module
Extends variables for activity template.
social_follow_taxonomy_tokens in modules/social_features/social_follow_taxonomy/social_follow_taxonomy.module
Implements hook_tokens().

File

modules/social_features/social_follow_taxonomy/social_follow_taxonomy.module, line 474
Contains social_follow_taxonomy.module.

Code

function social_follow_taxonomy_terms_list(EntityInterface $entity) {
  $term_ids = [];
  \Drupal::moduleHandler()
    ->alter('social_follow_taxonomy_terms_list', $term_ids, $entity);
  return $term_ids;
}