From fd37b8be36dbebfd6bacd08625da118dadd1fc78 Mon Sep 17 00:00:00 2001 From: Igor Biki <ibiki@uwaterloo.ca> Date: Fri, 28 Feb 2025 10:27:04 -0500 Subject: [PATCH] ISTWCMS-7275: Rename "publication" to "reference" in custom block. Updated class and form names, admin labels, and text strings to replace "publication" with "reference" for consistency and clarity in the custom block functionality. This aligns terminology with its intended purpose. --- src/Plugin/Block/UwCblPublicationSearch.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Plugin/Block/UwCblPublicationSearch.php b/src/Plugin/Block/UwCblPublicationSearch.php index 421b2d73..60db222b 100644 --- a/src/Plugin/Block/UwCblPublicationSearch.php +++ b/src/Plugin/Block/UwCblPublicationSearch.php @@ -11,11 +11,11 @@ use Drupal\Core\Plugin\ContainerFactoryPluginInterface; use Symfony\Component\DependencyInjection\ContainerInterface; /** - * Custom block publication search. + * Custom block reference search. * * @Block( * id = "uw_cbl_publication_search", - * admin_label = @Translation("Publication reference search"), + * admin_label = @Translation("Reference search"), * ) */ class UwCblPublicationSearch extends BlockBase implements ContainerFactoryPluginInterface { @@ -102,14 +102,14 @@ class UwCblPublicationSearch extends BlockBase implements ContainerFactoryPlugin // Get the reference search form using the options selected. $ref_search['form'] = $this->formBuilder->getForm( - 'Drupal\uw_bibcite_reference\Form\PublicationSearchForm', + 'Drupal\uw_bibcite_reference\Form\ReferenceSearchForm', $this->configuration, ); // If there is no block title, then set the label so that // the template will know to place a visually hidden one. if (!$this->configuration['label_display']) { - $ref_search['label'] = $this->t('Publication reference search'); + $ref_search['label'] = $this->t('Reference search'); } return [ -- GitLab