public function ProfileEntitySortable::__construct in Open Social 10.2.x
Same name and namespace in other branches
- 10.3.x modules/social_features/social_profile/src/Plugin/views/field/ProfileEntitySortable.php \Drupal\social_profile\Plugin\views\field\ProfileEntitySortable::__construct()
Constructs an GroupContentToEntityBase object.
Parameters
array $configuration: A configuration array containing information about the plugin instance.
string $plugin_id: The plugin_id for the plugin instance.
array $plugin_definition: The plugin implementation definition.
\Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager: The entity manager.
\Drupal\Core\Language\LanguageManagerInterface $language_manager: The language manager.
\Drupal\views\Plugin\ViewsHandlerManager $join_manager: The views plugin join manager.
\Drupal\Core\Extension\ModuleHandlerInterface $module_handler: The Drupal module handler service.
\Drupal\Core\Session\AccountInterface $current_user: Current user.
Overrides RenderedEntity::__construct
File
- modules/
social_features/ social_profile/ src/ Plugin/ views/ field/ ProfileEntitySortable.php, line 63
Class
- ProfileEntitySortable
- Field handler to sort rendered profile entity in views.
Namespace
Drupal\social_profile\Plugin\views\fieldCode
public function __construct(array $configuration, $plugin_id, array $plugin_definition, EntityTypeManagerInterface $entity_type_manager, LanguageManagerInterface $language_manager, ViewsHandlerManager $join_manager, ModuleHandlerInterface $module_handler, AccountInterface $current_user) {
parent::__construct($configuration, $plugin_id, $plugin_definition, $entity_type_manager, $language_manager);
$this->joinManager = $join_manager;
$this->moduleHandler = $module_handler;
$this->currentUser = $current_user;
}