@ -119,43 +103,6 @@ class BridgeForm extends FormBase {
return $form;
return $form;
}
}
/**
* Opens the usage instructions in a modal dialog.
*/
public function usageHelpModal(array &$form, FormStateInterface $form_state): AjaxResponse {
$content = [
'#type' => 'container',
'intro' => [
'#markup' => '<p>' . $this->t('This form creates a node-level Action that runs an existing configured media Action against every media item whose <code>field_media_of</code> references the selected node.') . '</p>',
],
'steps' => [
'#theme' => 'item_list',
'#list_type' => 'ol',
'#items' => [
$this->t('Enter the label you want users to see when selecting the node Action.'),
$this->t('Accept the generated machine name, or change it before the Action is first saved.'),
$this->t('Choose the configured media Action that should be executed for the node’s associated media.'),
$this->t('Click Save. The module creates a configured node Action automatically.'),
$this->t('Use that node Action from Views Bulk Operations, the Collection Manager, or any other interface that exposes configured node Actions.'),
],
],
'notes' => [
'#markup' => '<p><strong>' . $this->t('What happens when it runs:') . '</strong> ' . $this->t('The wrapper finds all media referencing the node through field_media_of, checks access for the selected media Action, and executes that Action against the eligible media items.') . '</p>',
],
'tip' => [
'#markup' => '<p><strong>' . $this->t('Tip:') . '</strong> ' . $this->t('If the media Action you need is not listed, configure/create that media Action first, then return to this form.') . '</p>',