class BankIDManager

Builds UI elements for BankID cases.

Traits

StringTranslationTrait
DependencySerializationTrait

Properties

protected ImmutableConfig $config

The BankID configuration.

Methods

__construct(RouteProviderInterface $routeProvider, TranslationInterface $stringTranslation, ConfigFactoryInterface $config_factory, BankIDOrderManager $orderManager)

Constructs a BankIDManager object.

array
buildDialog(string|null $configuration_hash = NULL)

Builds the dialog for BankID authentication.

array
buildDialogLink(CaseData $case)

Builds a link to open the BankID dialog.

array
buildDialogAjaxButton(CaseData $case)

Builds an ajax button to open the BankID dialog.

string|null
getOrderUid(string $order_ref)

Get the order uid from the order ref.

array|null
getOrderDoneTempData(string $order_ref)

Get the order done temporary data.

Details

at line 33
__construct(RouteProviderInterface $routeProvider, TranslationInterface $stringTranslation, ConfigFactoryInterface $config_factory, BankIDOrderManager $orderManager)

Constructs a BankIDManager object.

Parameters

RouteProviderInterface $routeProvider
TranslationInterface $stringTranslation
ConfigFactoryInterface $config_factory
BankIDOrderManager $orderManager

at line 53
array buildDialog(string|null $configuration_hash = NULL)

Builds the dialog for BankID authentication.

Parameters

string|null $configuration_hash

The configuration hash to identify the plugin configuration for this bankid order.

Return Value

array

The renderable array.

Builds a link to open the BankID dialog.

Parameters

CaseData $case

The case data.

Return Value

array

The renderable array.

at line 109
array buildDialogAjaxButton(CaseData $case)

Builds an ajax button to open the BankID dialog.

Parameters

CaseData $case

The case data.

Return Value

array

The renderable array.

at line 140
string|null getOrderUid(string $order_ref)

Get the order uid from the order ref.

Parameters

string $order_ref

The order reference.

Return Value

string|null

The order uid or NULL.

at line 153
array|null getOrderDoneTempData(string $order_ref)

Get the order done temporary data.

Parameters

string $order_ref

The order reference.

Return Value

array|null

The temporary order data or NULL.