You are here

public static function SocialSearchApiSplitProfileTerms::create in Open Social 10.2.x

Same name and namespace in other branches
  1. 10.3.x modules/social_features/social_profile/src/Plugin/views/filter/SocialSearchApiSplitProfileTerms.php \Drupal\social_profile\Plugin\views\filter\SocialSearchApiSplitProfileTerms::create()

File

modules/social_features/social_profile/src/Plugin/views/filter/SocialSearchApiSplitProfileTerms.php, line 29

Class

SocialSearchApiSplitProfileTerms
Defines a filter for filtering on taxonomy term references.

Namespace

Drupal\social_profile\Plugin\views\filter

Code

public static function create(ContainerInterface $container, array $configuration, $plugin_id, $plugin_definition) {
  $filter = parent::create($container, $configuration, $plugin_id, $plugin_definition);
  $filter
    ->setSocialProfileTagService($container
    ->get('social_profile.tag_service'));
  return $filter;
}