BankIDManager
class BankIDManager
Builds UI elements for BankID cases.
Traits
Methods
Constructs a BankIDManager object.
Builds the dialog for BankID authentication.
Checks if the module is in mock mode.
Builds an ajax button to open the BankID dialog.
Builds an ajax button to open the BankID dialog.
Get the order uid from the order ref.
Get the order done temporary data.
Build the order ref input element.
Sanity check that the order ref.
Get order ref element id from the configuration hash.
Get the BankID settings config.
Details
at line 32
__construct(RouteProviderInterface $routeProvider, BankIDOrderManager $orderManager, FormBuilderInterface $formBuilder, BankIDConfigInterface $config, TranslationInterface $translation, KillSwitch|null $killSwitch = NULL)
Constructs a BankIDManager object.
at line 53
array
buildDialog(string $configuration_hash)
Builds the dialog for BankID authentication.
at line 101
protected bool
isMockMode()
Checks if the module is in mock mode.
at line 116
array
buildDialogLink(BankIDCaseData $case)
Builds a link to open the BankID dialog.
at line 157
array
buildDialogAjaxButton(BankIDCaseData $case, string|null $parent_submit_id = NULL, string $order_ref_field = 'order_ref')
Builds an ajax button to open the BankID dialog.
NOTE: this also adds an order_ref hidden field that is populated by the client script.
at line 181
array
buildDialogAjaxButtonByConfigHash(string $configuration_hash, string|null $parent_submit_id = NULL, string $order_ref_field = 'order_ref')
Builds an ajax button to open the BankID dialog.
NOTE: this also adds an order_ref hidden field that is populated by the client script.
at line 240
string|null
getOrderUid(string $order_ref)
Get the order uid from the order ref.
at line 253
array|null
getOrderDoneTempData(string $order_ref)
Get the order done temporary data.
at line 271
array
buildOrderRefInput(string $configuration_hash, string $order_ref_field = 'order_ref')
Build the order ref input element.
It's a hidden element that gets populated by dialog after auth/sign is complete.
at line 306
static void
orderRefSubmitValidate(array $element, FormStateInterface $form_state, array $complete_form)
Sanity check that the order ref.
Check that the sent-in order ref is actually for this very configuration hash.
at line 330
protected string
getOrderRefInputId(string $configuration_hash)
Get order ref element id from the configuration hash.
at line 340
protected ImmutableConfig
getConfig()
Get the BankID settings config.