public function RolesRid::title_query

File

drupal/core/modules/user/lib/Drupal/user/Plugin/views/argument/RolesRid.php, line 60
Contains \Drupal\user\Plugin\views\argument\RolesRid.

Class

RolesRid
Allow role ID(s) as argument.

Namespace

Drupal\user\Plugin\views\argument

Code

public function title_query() {
  $entities = $this->roleStorageController
    ->load($this->value);
  $titles = array();
  foreach ($entities as $entity) {
    $titles[] = String::checkPlain($entity
      ->label());
  }
  return $titles;
}