You are here

public function ModuleBuilderComponentListBuilder::render in Module Builder 8.3

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/ModuleBuilderComponentListBuilder.php, line 18

Class

ModuleBuilderComponentListBuilder
Defines a class to build a listing of module builder components.

Namespace

Drupal\module_builder

Code

public function render() {

  // Sanity check the environment and tell the user to go process data if
  // not already done so.
  // TODO: inject.
  \Drupal::service('module_builder.drupal_code_builder')
    ->loadLibrary();
  try {
    Factory::getEnvironment()
      ->verifyEnvironment('hook_data');
  } catch (SanityException $e) {
    ExceptionHandler::handleSanityException($e);
  }
  return parent::render();
}