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 {
$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'),
'#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'