public function ShortcutListController::buildRow

Overrides \Drupal\Core\Entity\EntityListController::buildRow().

Overrides EntityListController::buildRow

File

drupal/core/modules/shortcut/lib/Drupal/shortcut/ShortcutListController.php, line 55

Class

ShortcutListController
Provides a listing of shortcut sets.

Namespace

Drupal\shortcut

Code

public function buildRow(EntityInterface $entity) {
  $row['name'] = check_plain($entity
    ->label());
  $row['operations']['data'] = $this
    ->buildOperations($entity);
  return $row;
}