public function ContentMenuListController::buildRow in Content Menu 8
Overrides \Drupal\menu\MenuListController::buildRow().
1 call to ContentMenuListController::buildRow()
- ContentMenuListController::render in lib/
Drupal/ content_menu/ ContentMenuListController.php - Overrides \Drupal\Core\Entity\EntityListController::render().
File
- lib/
Drupal/ content_menu/ ContentMenuListController.php, line 29
Class
- ContentMenuListController
- Provides a simplified listing of Menus
Namespace
Drupal\content_menuCode
public function buildRow(EntityInterface $entity) {
$row['title'] = '<div class="menu-label">' . check_plain($entity
->label()) . '</div>' . filter_xss_admin($entity->description);
$row['operations']['data'] = $this
->buildOperations($entity);
return $row;
}