protected function SocialAlbumController::checkAlbumAccess in Open Social 10.3.x
Same name and namespace in other branches
- 10.0.x modules/social_features/social_album/src/Controller/SocialAlbumController.php \Drupal\social_album\Controller\SocialAlbumController::checkAlbumAccess()
- 10.1.x modules/social_features/social_album/src/Controller/SocialAlbumController.php \Drupal\social_album\Controller\SocialAlbumController::checkAlbumAccess()
- 10.2.x modules/social_features/social_album/src/Controller/SocialAlbumController.php \Drupal\social_album\Controller\SocialAlbumController::checkAlbumAccess()
Checks access to the form of a post which will be linked to the album.
Parameters
\Drupal\node\NodeInterface $node: The node object.
Return value
bool TRUE if it's an album node.
2 calls to SocialAlbumController::checkAlbumAccess()
- SocialAlbumController::checkAddImageAccess in modules/
social_features/ social_album/ src/ Controller/ SocialAlbumController.php - Checks access to the page for adding an image to an album.
- SocialAlbumController::checkViewImageAccess in modules/
social_features/ social_album/ src/ Controller/ SocialAlbumController.php - Checks access to the page for viewing the image from the post.
File
- modules/
social_features/ social_album/ src/ Controller/ SocialAlbumController.php, line 192
Class
- SocialAlbumController
- Returns responses for Album routes.
Namespace
Drupal\social_album\ControllerCode
protected function checkAlbumAccess(NodeInterface $node) {
return $node
->bundle() === 'album';
}