public function SocialEventInvitesAccess::eventFeatureAccess in Open Social 10.3.x
Same name and namespace in other branches
- 8.9 modules/social_features/social_event/modules/social_event_invite/src/Access/SocialEventInvitesAccess.php \Drupal\social_event_invite\Access\SocialEventInvitesAccess::eventFeatureAccess()
- 10.0.x modules/social_features/social_event/modules/social_event_invite/src/Access/SocialEventInvitesAccess.php \Drupal\social_event_invite\Access\SocialEventInvitesAccess::eventFeatureAccess()
- 10.1.x modules/social_features/social_event/modules/social_event_invite/src/Access/SocialEventInvitesAccess.php \Drupal\social_event_invite\Access\SocialEventInvitesAccess::eventFeatureAccess()
- 10.2.x modules/social_features/social_event/modules/social_event_invite/src/Access/SocialEventInvitesAccess.php \Drupal\social_event_invite\Access\SocialEventInvitesAccess::eventFeatureAccess()
Custom access check on the invite features on events.
Return value
\Drupal\Core\Access\AccessResult Returns the result of the access helper.
See also
\Drupal\social_event_invite\SocialEventInviteAccessHelper::eventFeatureAccess()
File
- modules/
social_features/ social_event/ modules/ social_event_invite/ src/ Access/ SocialEventInvitesAccess.php, line 42
Class
- SocialEventInvitesAccess
- Class SocialEventInvitesAccess.
Namespace
Drupal\social_event_invite\AccessCode
public function eventFeatureAccess() {
try {
return $this->accessHelper
->eventFeatureAccess();
} catch (InvalidPluginDefinitionException $e) {
return AccessResult::neutral();
} catch (PluginNotFoundException $e) {
return AccessResult::neutral();
}
}