public function MenuListController::buildRow

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

Overrides EntityListController::buildRow

File

drupal/core/modules/menu/lib/Drupal/menu/MenuListController.php, line 33

Class

MenuListController
Provides a listing of menus.

Namespace

Drupal\menu

Code

public function buildRow(EntityInterface $entity) {
  $row['title'] = array(
    'data' => check_plain($entity
      ->label()),
    'class' => array(
      'menu-label',
    ),
  );
  $row['description'] = filter_xss_admin($entity->description);
  $row['operations']['data'] = $this
    ->buildOperations($entity);
  return $row;
}