You are here

public function OembedProviderBucketListBuilder::render in oEmbed Providers 2.x

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/OembedProviderBucketListBuilder.php, line 16

Class

OembedProviderBucketListBuilder
Provides a listing of custom oEmbed provider buckets.

Namespace

Drupal\oembed_providers

Code

public function render() {
  $build = parent::render();
  $build['markup'] = [
    '#markup' => $this
      ->t('<p>Provider buckets allow site builders to define groups of oEmbed providers. These buckets are automatically exposed as media sources.</p>'),
    '#weight' => -10,
  ];
  return $build;
}