You are here

public function SocialAlbumUserAccess::access in Open Social 10.1.x

Same name and namespace in other branches
  1. 10.3.x modules/social_features/social_album/src/Plugin/views/access/SocialAlbumUserAccess.php \Drupal\social_album\Plugin\views\access\SocialAlbumUserAccess::access()
  2. 10.0.x modules/social_features/social_album/src/Plugin/views/access/SocialAlbumUserAccess.php \Drupal\social_album\Plugin\views\access\SocialAlbumUserAccess::access()
  3. 10.2.x modules/social_features/social_album/src/Plugin/views/access/SocialAlbumUserAccess.php \Drupal\social_album\Plugin\views\access\SocialAlbumUserAccess::access()

Determine if the current user has access or not.

Parameters

\Drupal\Core\Session\AccountInterface $account: The user who wants to access this view.

Return value

bool Returns whether the user has access to the view.

Overrides AccessPluginBase::access

File

modules/social_features/social_album/src/Plugin/views/access/SocialAlbumUserAccess.php, line 25

Class

SocialAlbumUserAccess
Access plugin that provides access control to the user albums page.

Namespace

Drupal\social_album\Plugin\views\access

Code

public function access(AccountInterface $account) {
  return $account
    ->isAuthenticated();
}