You are here

public function UserBadgesListBuilder::__construct in User Badges 8

Constructs a new BlockListBuilder object.

Parameters

\Drupal\Core\Form\FormBuilderInterface $form_builder: The form builder.

File

src/Controller/UserBadgesListBuilder.php, line 53
Contains \Drupal\user_badges\Controller\UserBadgesListBuilder.

Class

UserBadgesListBuilder
Class UserBadgesListBuilder.

Namespace

Drupal\user_badges\Controller

Code

public function __construct(FormBuilderInterface $form_builder, EntityTypeManagerInterface $entity_type_manager) {
  $this->formBuilder = $form_builder;
  $this->storageController = $entity_type_manager
    ->getStorage('badge');
}