private $dashboardPanels = [];
/** @var ServiceRegistration<ILinkAction>[] */
- private $profileActions = [];
+ private $profileLinkActions = [];
/** @var ServiceFactoryRegistration[] */
private $services = [];
);
}
- public function registerProfileAction(string $actionClass): void {
- $this->context->registerProfileAction(
+ public function registerProfileLinkAction(string $actionClass): void {
+ $this->context->registerProfileLinkAction(
$this->appId,
$actionClass
);
}
/**
- * @psalm-param class-string<ILinkAction> $capability
+ * @psalm-param class-string<ILinkAction> $actionClass
*/
- public function registerProfileAction(string $appId, string $actionClass): void {
- $this->profileActions[] = new ServiceRegistration($appId, $actionClass);
+ public function registerProfileLinkAction(string $appId, string $actionClass): void {
+ $this->profileLinkActions[] = new ServiceRegistration($appId, $actionClass);
}
/**
/**
* @return ServiceRegistration<ILinkAction>[]
*/
- public function getProfileActions(): array {
- return $this->profileActions;
+ public function getProfileLinkActions(): array {
+ return $this->profileLinkActions;
}
}
$this->registerAction($targetUser, $visitingUser, $provider);
}
- foreach ($context->getProfileActions() as $registration) {
+ foreach ($context->getProfileLinkActions() as $registration) {
/** @var ILinkAction $provider */
$provider = $this->container->get($registration->getService());
$this->registerAction($targetUser, $visitingUser, $provider);
/**
* Register an implementation of \OCP\Profile\ILinkAction that
- * will handle the implementation of a profile action
+ * will handle the implementation of a profile link action
*
* @param string $actionClass
* @psalm-param class-string<\OCP\Profile\ILinkAction> $actionClass
* @return void
* @since 23.0.0
*/
- public function registerProfileAction(string $actionClass): void;
+ public function registerProfileLinkAction(string $actionClass): void;
}