You are here

protected function ViewsBulkOperationsFormTrait::getSelectionInfoTitle in Views Bulk Operations (VBO) 4.0.x

Same name and namespace in other branches
  1. 8.3 src/Form/ViewsBulkOperationsFormTrait.php \Drupal\views_bulk_operations\Form\ViewsBulkOperationsFormTrait::getSelectionInfoTitle()

Get the selection info title.

Parameters

array $tempstore_data: VBO tempstore data array.

Return value

\Drupal\Core\StringTranslation\TranslatableMarkup The selection info title.

1 call to ViewsBulkOperationsFormTrait::getSelectionInfoTitle()
ViewsBulkOperationsFormTrait::getListRenderable in src/Form/ViewsBulkOperationsFormTrait.php
Build selected entities list renderable.

File

src/Form/ViewsBulkOperationsFormTrait.php, line 82

Class

ViewsBulkOperationsFormTrait
Defines common methods for Views Bulk Operations forms.

Namespace

Drupal\views_bulk_operations\Form

Code

protected function getSelectionInfoTitle(array $tempstore_data) {
  if (!empty($tempstore_data['list'])) {
    return empty($tempstore_data['exclude_mode']) ? $this
      ->t('Items selected:') : $this
      ->t('Selected all items except:');
  }
}