Skip to content
Snippets Groups Projects
Commit fd37b8be authored by Igor Biki's avatar Igor Biki Committed by Kevin Paxman
Browse files

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.
parent 79f1e027
No related branches found
No related tags found
No related merge requests found
......@@ -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 [
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment