public function CustomBlockTypeListController::buildRow

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

Overrides EntityListController::buildRow

File

drupal/core/modules/block/custom_block/lib/Drupal/custom_block/CustomBlockTypeListController.php, line 54
Contains \Drupal\custom_block\CustomBlockTypeListController.

Class

CustomBlockTypeListController
Provides a listing of custom block types.

Namespace

Drupal\custom_block

Code

public function buildRow(EntityInterface $entity) {
  parent::buildRow($entity);
  $uri = $entity
    ->uri();
  $row['type'] = l($entity
    ->label(), $uri['path'], $uri['options']);
  $row['description'] = filter_xss_admin($entity->description);
  $row['operations']['data'] = $this
    ->buildOperations($entity);
  return $row;
}