Verified Commit 034e955b authored by Andrei Mateescu's avatar Andrei Mateescu
Browse files

task: #3584302 Update referenced Gin hooks in comments

By: poker10
By: quietone
By: sivaji_ganesh_jojodae
By: smustgrave
By: dcam
By: amateescu
(cherry picked from commit 3301cb41)
parent 64bdb28c
Loading
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -272,8 +272,8 @@ public static function isContentForm(?FormStateInterface $form_state = NULL, str
    if ($form_id) {
      // Forms to exclude.
      // If media library widget, don't use new content edit form.
      // gin_preprocess_html is not triggered here, so checking the form id is
      // enough.
      // \Drupal\default_admin\Hook\PreprocessHooks::preprocessHtml() is not
      // triggered here, so checking the form ID is enough.
      $form_ids_to_ignore = [
        'media_library_add_form_',
        'views_form_media_library_widget_',
+1 −1
Original line number Diff line number Diff line
@@ -751,7 +751,7 @@ public function stickyActionButtonsAndSidebar(array &$form, FormStateInterface $
    ];

    // Specify necessary node form theme and library.
    // @see gin_form_node_form_alter
    // @see \Drupal\default_admin\Hook\FormHooks::formNodeFormAlter()
    $form['#theme'] = ['node_edit_form'];
    // Attach libraries.
    $form['#attached']['library'][] = 'default_admin/node-form';
+1 −1
Original line number Diff line number Diff line
@@ -12,7 +12,7 @@
 * - compact: Boolean indicating whether compact mode is turned on or not.
 *
 * @see template_preprocess_admin_block_content()
 * @see gin_preprocess_admin_block_content()
 * @see \Drupal\default_admin\Hook\PreprocessHooks::preprocessAdminBlockContent()
 */
#}
{%
+2 −2
Original line number Diff line number Diff line
@@ -8,13 +8,13 @@
 *   - label: Block content type label
 *   - add_link: \Drupal\Core\Link link instance to create an entity of this
 *     block content type. This is a GeneratedLink originally and is switched by
 *     gin_preprocess_block_content_add_list().
 *     \Drupal\default_admin\Hook\PreprocessHooks::preprocessBlockContentAddList().
 *   - description: A description of this custom block type.
 *
 * @todo Revisit after https://www.drupal.org/node/3026221 has been solved.
 *
 * @see template_preprocess_block_content_add_list()
 * @see gin_preprocess_block_content_add_list()
 * @see \Drupal\default_admin\Hook\PreprocessHooks::preprocessBlockContentAddList()
 */
 #}
{% extends '@default_admin/admin/entity-add-list.html.twig' %}
+2 −2
Original line number Diff line number Diff line
@@ -8,13 +8,13 @@
 *   - label: Content type label.
 *   - add_link: \Drupal\Core\Link link instance to create an entity of this
 *     content type. This is a GeneratedLink originally and is switched by
 *     gin_preprocess_node_add_list().
 *     \Drupal\default_admin\Hook\PreprocessHooks::preprocessNodeAddList().
 *   - description: Description of this type of content.
 *
 * @todo Revisit after https://www.drupal.org/node/3026221 has been solved.
 *
 * @see template_preprocess_node_add_list()
 * @see gin_preprocess_node_add_list()
 * @see \Drupal\default_admin\Hook\PreprocessHooks::preprocessNodeAddList()
 */
#}
{% extends '@default_admin/admin/entity-add-list.html.twig' %}
Loading