- π¦π«Afghanistan ab.shakir
The annotation in the content enabler plugin should include the handler part. This is actually missing from the instructions mentioned in the issue summary above. Your annotation must look like:
/**
* Provides a content enabler for user entities.
*
* @GroupContentEnabler(
* id = "group_entity_user",
* label = @Translation("User"),
* description = @Translation("Adds users to groups as pure entities and not as members."),
* entity_type_id = "user",
* entity_access = TRUE,
* pretty_path_key = "user",
* reference_label = @Translation("Username"),
* reference_description = @Translation("The name of the user (entity) to add to the group (not as a member)"),
* deriver = "Drupal\module_name\Plugin\GroupContentEnabler\UserEntityDeriver",
* handlers = {
* "access" = "Drupal\group\Plugin\GroupContentAccessControlHandler",
* "permission_provider" = "Drupal\group\Plugin\GroupContentPermissionProvider",
* }
* )
*/