You are here

public function AccessUnpublishedForm::__construct in Access unpublished 8

AccessUnpublishedForm constructor.

Parameters

\Drupal\Core\Entity\EntityTypeManagerInterface $entityTypeManager: Entity type manager service.

\Drupal\Core\Config\ConfigFactoryInterface $configFactory: Config factory service.

File

src/Form/AccessUnpublishedForm.php, line 45

Class

AccessUnpublishedForm
Alter the entity form to add access unpublished elements.

Namespace

Drupal\access_unpublished\Form

Code

public function __construct(EntityTypeManagerInterface $entityTypeManager, ConfigFactoryInterface $configFactory) {
  $this->entityTypeManager = $entityTypeManager;
  $this->config = $configFactory
    ->get('access_unpublished.settings');
}