public function LogEventSubscriber::__construct in farmOS 2.x
Same name in this branch
- 2.x modules/log/birth/src/EventSubscriber/LogEventSubscriber.php \Drupal\farm_birth\EventSubscriber\LogEventSubscriber::__construct()
- 2.x modules/core/owner/src/EventSubscriber/LogEventSubscriber.php \Drupal\farm_owner\EventSubscriber\LogEventSubscriber::__construct()
LogEventSubscriber constructor.
Parameters
\Drupal\Core\Session\AccountInterface $current_user: The current user.
File
- modules/
core/ owner/ src/ EventSubscriber/ LogEventSubscriber.php, line 27
Class
- LogEventSubscriber
- Perform actions on log presave.
Namespace
Drupal\farm_owner\EventSubscriberCode
public function __construct(AccountInterface $current_user) {
$this->currentUser = $current_user;
}