You are here

public function EntityForm::__construct in Acquia Content Hub 8

Constructor.

Parameters

\Drupal\Core\Session\AccountInterface $current_user: The current user.

\Drupal\acquia_contenthub\ContentHubEntitiesTracking $entities_tracking: The Content Hub Entities Tracking Service.

File

src/Form/EntityForm.php, line 40

Class

EntityForm
Defines a form that alters entity form to add a Content Hub form.

Namespace

Drupal\acquia_contenthub\Form

Code

public function __construct(AccountInterface $current_user, ContentHubEntitiesTracking $entities_tracking) {
  $this->currentUser = $current_user;
  $this->contentHubEntitiesTracking = $entities_tracking;
}