You are here

public function ProfileListBuilder::__construct in Profile 8

Constructs a new ProfileListController object.

Parameters

\Drupal\Core\Entity\EntityTypeInterface $entity_type: The entity type definition.

\Drupal\Core\Entity\EntityStorageInterface $storage: The entity storage class.

\Drupal\Core\Datetime\DateFormatter $date_formatter: The date formatter service.

\Drupal\Core\Render\RendererInterface $renderer: The renderer.

\Drupal\Core\Routing\RedirectDestinationInterface $redirect_destination: The redirect destination service.

Overrides EntityListBuilder::__construct

File

src/ProfileListBuilder.php, line 57

Class

ProfileListBuilder
List controller for profiles.

Namespace

Drupal\profile

Code

public function __construct(EntityTypeInterface $entity_type, EntityStorageInterface $storage, DateFormatter $date_formatter, RendererInterface $renderer, RedirectDestinationInterface $redirect_destination) {
  parent::__construct($entity_type, $storage);
  $this->dateFormatter = $date_formatter;
  $this->renderer = $renderer;
  $this->redirectDestination = $redirect_destination;
}