You are here

public function SocialNodeForm::__construct in Open Social 10.0.x

Same name and namespace in other branches
  1. 10.3.x modules/social_features/social_node/src/SocialNodeForm.php \Drupal\social_node\SocialNodeForm::__construct()
  2. 10.1.x modules/social_features/social_node/src/SocialNodeForm.php \Drupal\social_node\SocialNodeForm::__construct()
  3. 10.2.x modules/social_features/social_node/src/SocialNodeForm.php \Drupal\social_node\SocialNodeForm::__construct()

Constructs a NodeForm object.

Parameters

\Drupal\Core\Entity\EntityRepositoryInterface $entity_repository: The entity repository.

\Drupal\Core\TempStore\PrivateTempStoreFactory $temp_store_factory: The factory for the temp store object.

\Drupal\Core\Entity\EntityTypeBundleInfoInterface $entity_type_bundle_info: The entity type bundle service.

\Drupal\Component\Datetime\TimeInterface $time: The time service.

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

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

\Drupal\social_node\Service\SocialNodeMessengerInterface $messenger: The messenger.

Overrides NodeForm::__construct

File

modules/social_features/social_node/src/SocialNodeForm.php, line 39

Class

SocialNodeForm
Form handler for the node edit forms.

Namespace

Drupal\social_node

Code

public function __construct(EntityRepositoryInterface $entity_repository, PrivateTempStoreFactory $temp_store_factory, EntityTypeBundleInfoInterface $entity_type_bundle_info = NULL, TimeInterface $time = NULL, AccountInterface $current_user, DateFormatterInterface $date_formatter, SocialNodeMessengerInterface $messenger) {
  parent::__construct($entity_repository, $temp_store_factory, $entity_type_bundle_info, $time, $current_user, $date_formatter);
  $this
    ->setMessenger($messenger);
}