Feeds Save and import button missing when sticky action buttons setting enabled
>>> [!note] Migrated issue
<!-- Drupal.org comment -->
<!-- Migrated from issue #3511209. -->
Reported by: [jsutta](https://www.drupal.org/user/3615831)
Related to !789
>>>
<h3 id="summary-problem-motivation">Problem/Motivation</h3>
<p>Note: Not sure if this is a bug or a support request.</p>
<p>When the "Enable sticky action buttons" setting is enabled in Gin settings, the Feeds module's Save and import button goes missing. Per Gin's <a href="https://www.drupal.org/docs/contributed-themes/gin-admin-theme/custom-theming#sticky_buttons">documentation</a>, I added the following to one of my custom modules' form_alter hooks:</p>
<pre>if (isset($form['actions']['import'])) {<br> $form['actions']['import']['#gin_action_item'] = TRUE;<br>}</pre><p>Unfortunately that didn't work, so I've disabled the "Enable sticky action buttons" setting for now.</p>
<h4 id="summary-steps-reproduce">Steps to reproduce</h4>
<ol>
<li>Enable the Gin theme and set it as the default admin theme. Leave the "Enable sticky action buttons" setting disabled.</li>
<li>Enable the Feeds module.</li>
<li>Create a feed type.</li>
<li>Add a feed of the type you just created. The form action buttons: Save and import and Cancel, will be visible at the bottom of the form. (See <a href="https://www.drupal.org/files/issues/2025-03-05/3511209--screenshot-1.png">3511209--screenshot-1.png</a>)</li>
<li>Don't save the feed. Instead, go to the Gin theme's settings page and enable the "Enable sticky action buttons" setting.</li>
<li>Go back to the Add feed page. The form action buttons will no longer be at the bottom of the form. In the Gin sticky actions menu, the Cancel button is available behind the More actions button. But, the Save and import button will not be visible. (See <a href="https://www.drupal.org/files/issues/2025-03-05/3511209--screenshot-2.png">3511209--screenshot-2.png</a>)</li>
<li>In a custom module's <code>hook_form_alter</code> hook, add the following, which should make the Save and import button visible in the sticky actions menu:<br>
<pre>if (isset($form['actions']['import'])) {<br> $form['actions']['import']['#gin_action_item'] = TRUE;<br>}</pre></li>
<li>Refresh the Add feed page. The Save and import button will still not be visible. (See <a href="https://www.drupal.org/files/issues/2025-03-05/3511209--screenshot-2.png">3511209--screenshot-2.png</a>)</li>
</ol>
> Related issue: [Issue #3524741](https://www.drupal.org/node/3524741)
issue