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
+ 3
3
Compare changes
  • Side-by-side
  • Inline
@@ -339,7 +339,7 @@ function _publications_search_block_rename_batch_start($node_count, $revision_co
@@ -339,7 +339,7 @@ function _publications_search_block_rename_batch_start($node_count, $revision_co
* @param array|\DrushBatchContext $context
* @param array|\DrushBatchContext $context
* The batch context array, which is updated with counts.
* The batch context array, which is updated with counts.
*/
*/
function _publications_search_block_rename_batch_node_update($node_ids, &$context) {
function _publications_search_block_rename_batch_node_update(array $node_ids, &$context) {
$node_storage = \Drupal::entityTypeManager()->getStorage('node');
$node_storage = \Drupal::entityTypeManager()->getStorage('node');
$nodes = $node_storage->loadMultiple($node_ids);
$nodes = $node_storage->loadMultiple($node_ids);
@@ -380,7 +380,7 @@ function _publications_search_block_rename_batch_node_update($node_ids, &$contex
@@ -380,7 +380,7 @@ function _publications_search_block_rename_batch_node_update($node_ids, &$contex
* @param array|\DrushBatchContext $context
* @param array|\DrushBatchContext $context
* The batch context array, which is updated with counts.
* The batch context array, which is updated with counts.
*/
*/
function _publications_search_block_rename_batch_revision_update($revision_ids, &$context) {
function _publications_search_block_rename_batch_revision_update(array $revision_ids, &$context) {
$node_storage = \Drupal::entityTypeManager()->getStorage('node');
$node_storage = \Drupal::entityTypeManager()->getStorage('node');
foreach ($revision_ids as $revision_id) {
foreach ($revision_ids as $revision_id) {
@@ -424,7 +424,7 @@ function _publications_search_block_rename_batch_revision_update($revision_ids,
@@ -424,7 +424,7 @@ function _publications_search_block_rename_batch_revision_update($revision_ids,
* @param array|\DrushBatchContext $context
* @param array|\DrushBatchContext $context
* The batch context array, which is updated with counts.
* The batch context array, which is updated with counts.
*/
*/
function _publications_search_block_rename_batch_temp_storage_update($keys, &$context) {
function _publications_search_block_rename_batch_temp_storage_update(array $keys, &$context) {
/** @var \Drupal\Core\KeyValueStore\KeyValueDatabaseExpirableFactory $key_value */
/** @var \Drupal\Core\KeyValueStore\KeyValueDatabaseExpirableFactory $key_value */
$key_value = \Drupal::service('keyvalue.expirable.database');
$key_value = \Drupal::service('keyvalue.expirable.database');
Loading