X-Git-Url: http://www.aleph1.co.uk/gitweb/?a=blobdiff_plain;ds=sidebyside;f=web%2Fcore%2Fmodules%2Faction%2Fsrc%2FForm%2FActionAdminManageForm.php;fp=web%2Fcore%2Fmodules%2Faction%2Fsrc%2FForm%2FActionAdminManageForm.php;h=627e1ed327e585a3763ec6b9b7ffb87f0870287a;hb=af6d1fb995500ae68849458ee10d66abbdcfb252;hp=478e919be04567e51c1f2b075ef9266040a05fa4;hpb=680c79a86e3ed402f263faeac92e89fb6d9edcc0;p=yaffs-website diff --git a/web/core/modules/action/src/Form/ActionAdminManageForm.php b/web/core/modules/action/src/Form/ActionAdminManageForm.php index 478e919be..627e1ed32 100644 --- a/web/core/modules/action/src/Form/ActionAdminManageForm.php +++ b/web/core/modules/action/src/Form/ActionAdminManageForm.php @@ -3,13 +3,14 @@ namespace Drupal\action\Form; use Drupal\Core\Form\FormBase; -use Drupal\Component\Utility\Crypt; use Drupal\Core\Action\ActionManager; use Drupal\Core\Form\FormStateInterface; use Symfony\Component\DependencyInjection\ContainerInterface; /** * Provides a configuration form for configurable actions. + * + * @internal */ class ActionAdminManageForm extends FormBase { @@ -53,10 +54,10 @@ class ActionAdminManageForm extends FormBase { $actions = []; foreach ($this->manager->getDefinitions() as $id => $definition) { if (is_subclass_of($definition['class'], '\Drupal\Core\Plugin\PluginFormInterface')) { - $key = Crypt::hashBase64($id); - $actions[$key] = $definition['label'] . '...'; + $actions[$id] = $definition['label']; } } + asort($actions); $form['parent'] = [ '#type' => 'details', '#title' => $this->t('Create an advanced action'), @@ -68,7 +69,7 @@ class ActionAdminManageForm extends FormBase { '#title' => $this->t('Action'), '#title_display' => 'invisible', '#options' => $actions, - '#empty_option' => $this->t('Choose an advanced action'), + '#empty_option' => $this->t('- Select -'), ]; $form['parent']['actions'] = [ '#type' => 'actions'