You are here

public function SocialEventInvitesAccess::eventFeatureAccess in Open Social 8.9

Same name and namespace in other branches
  1. 10.3.x modules/social_features/social_event/modules/social_event_invite/src/Access/SocialEventInvitesAccess.php \Drupal\social_event_invite\Access\SocialEventInvitesAccess::eventFeatureAccess()
  2. 10.0.x modules/social_features/social_event/modules/social_event_invite/src/Access/SocialEventInvitesAccess.php \Drupal\social_event_invite\Access\SocialEventInvitesAccess::eventFeatureAccess()
  3. 10.1.x modules/social_features/social_event/modules/social_event_invite/src/Access/SocialEventInvitesAccess.php \Drupal\social_event_invite\Access\SocialEventInvitesAccess::eventFeatureAccess()
  4. 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\Access

Code

public function eventFeatureAccess() {
  try {
    return $this->accessHelper
      ->eventFeatureAccess();
  } catch (InvalidPluginDefinitionException $e) {
    return AccessResult::neutral();
  } catch (PluginNotFoundException $e) {
    return AccessResult::neutral();
  }
}