You are here

public function ShippingMethodListBuilder::render in Commerce Shipping 8.2

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/ShippingMethodListBuilder.php, line 132

Class

ShippingMethodListBuilder
Defines the list builder for shipping methods.

Namespace

Drupal\commerce_shipping

Code

public function render() {
  $build = $this->formBuilder
    ->getForm($this);

  // Only add the pager if a limit is specified.
  if ($this->limit) {
    $build['pager'] = [
      '#type' => 'pager',
    ];
  }
  return $build;
}