You are here

public function FlagMappingListBuilder::render in Flags 8

Builds the entity listing as renderable array for table.html.twig.

@todo Add a link to add a new item to the #empty text.

Overrides EntityListBuilder::render

File

src/Entity/FlagMappingListBuilder.php, line 90

Class

FlagMappingListBuilder
Provides a listing of flag mapping entities.

Namespace

Drupal\flags\Entity

Code

public function render() {
  $build['description'] = array(
    '#markup' => $this
      ->t("<p>Country to flag mapping allows you to display" . " flags from Flags module next to your country fields or" . " country select forms.</p><p>Default mappings can be changed" . " by adding configurations. You can also use the" . " 'Operations' column to edit and delete mappings.</p>"),
  );
  $build[] = parent::render();
  return $build;
}