You are here

private function PickAccountsForm::getActionOptions in User Merge 2.x

Get action options which will be displayed in the form.

Return value

array Action options.

1 call to PickAccountsForm::getActionOptions()
PickAccountsForm::buildForm in src/Form/PickAccountsForm.php
Form constructor.

File

src/Form/PickAccountsForm.php, line 150

Class

PickAccountsForm
Class PickAccountsForm.

Namespace

Drupal\usermerge\Form

Code

private function getActionOptions() : array {
  $options = [];
  $definitions = $this->actionPluginManager
    ->getDefinitions();
  foreach ($definitions as $definition) {
    $options[$definition['id']] = (string) $definition['name'];
  }
  return $options;
}