You are here

public function DraggableListBuilder::render in Drupal 9

Same name and namespace in other branches
  1. 8 core/lib/Drupal/Core/Config/Entity/DraggableListBuilder.php \Drupal\Core\Config\Entity\DraggableListBuilder::render()
  2. 10 core/lib/Drupal/Core/Config/Entity/DraggableListBuilder.php \Drupal\Core\Config\Entity\DraggableListBuilder::render()

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

1 call to DraggableListBuilder::render()
VocabularyListBuilder::render in core/modules/taxonomy/src/VocabularyListBuilder.php
Builds the entity listing as renderable array for table.html.twig.
1 method overrides DraggableListBuilder::render()
VocabularyListBuilder::render in core/modules/taxonomy/src/VocabularyListBuilder.php
Builds the entity listing as renderable array for table.html.twig.

File

core/lib/Drupal/Core/Config/Entity/DraggableListBuilder.php, line 92

Class

DraggableListBuilder
Defines a class to build a draggable listing of configuration entities.

Namespace

Drupal\Core\Config\Entity

Code

public function render() {
  if (!empty($this->weightKey)) {
    return $this
      ->formBuilder()
      ->getForm($this);
  }
  return parent::render();
}