Skip to content
Snippets Groups Projects

ISTWCMS-7275: Rename "publication" to "reference" in custom block.

Open Igor Biki requested to merge feature/ISTWCMS-7275-ibiki-publications_rename into 1.1.x
1 file
+ 4
4
Compare changes
  • Side-by-side
  • Inline
@@ -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 [
Loading