protected function GroupAddBlock::getUrl in Open Social 10.2.x
Same name and namespace in other branches
- 10.3.x modules/social_features/social_group/src/Plugin/Block/GroupAddBlock.php \Drupal\social_group\Plugin\Block\GroupAddBlock::getUrl()
 - 10.0.x modules/social_features/social_group/src/Plugin/Block/GroupAddBlock.php \Drupal\social_group\Plugin\Block\GroupAddBlock::getUrl()
 - 10.1.x modules/social_features/social_group/src/Plugin/Block/GroupAddBlock.php \Drupal\social_group\Plugin\Block\GroupAddBlock::getUrl()
 
Returns the URL of the button.
Return value
\Drupal\Core\Url The URL object.
1 call to GroupAddBlock::getUrl()
- GroupAddBlock::build in modules/
social_features/ social_group/ src/ Plugin/ Block/ GroupAddBlock.php  - Builds and returns the renderable array for this block plugin.
 
File
- modules/
social_features/ social_group/ src/ Plugin/ Block/ GroupAddBlock.php, line 170  
Class
- GroupAddBlock
 - Provides a 'GroupAddBlock' block.
 
Namespace
Drupal\social_group\Plugin\BlockCode
protected function getUrl() {
  return $this->socialGroupHelper
    ->getGroupsToAddUrl($this->currentUser) ?? Url::fromRoute('entity.group.add_page');
}