You are here

public function DashboardLayoutBuilderForm::__construct in Dashboards with Layout Builder 8

Same name and namespace in other branches
  1. 2.0.x src/Form/DashboardLayoutBuilderForm.php \Drupal\dashboards\Form\DashboardLayoutBuilderForm::__construct()

File

src/Form/DashboardLayoutBuilderForm.php, line 76

Class

DashboardLayoutBuilderForm
DashboardLayoutBuilderForm class.

Namespace

Drupal\dashboards\Form

Code

public function __construct(LayoutTempstoreRepositoryInterface $layout_tempstore_repository, UserDataInterface $user_data, AccountInterface $account, ConfigFactoryInterface $config_factory) {
  $this->layoutTempstoreRepository = $layout_tempstore_repository;
  $this->userData = $user_data;
  $this->account = $account;
  $this->config = $config_factory
    ->get('dashboards.settings');
}