public function ProfileOwner::getArgument in Profile 8
Return the default argument.
This needs to be overridden by every default argument handler to properly do what is needed.
Overrides ArgumentDefaultPluginBase::getArgument
File
- src/
Plugin/ views/ argument_default/ ProfileOwner.php, line 62
Class
- ProfileOwner
- Default argument plugin to extract a user from a profile.
Namespace
Drupal\profile\Plugin\views\argument_defaultCode
public function getArgument() {
if (($profile = $this->routeMatch
->getParameter('profile')) && $profile instanceof ProfileInterface) {
return $profile
->getOwnerId();
}
}