You are here

public function DynamicLayoutSettings::setFrontendLibrary in Dynamic Layouts 8

Set the frontend library.

Parameters

string $frontend_library: The frontend library we need to set.

Overrides DynamicLayoutSettingsInterface::setFrontendLibrary

File

src/Entity/DynamicLayoutSettings.php, line 80

Class

DynamicLayoutSettings
Defines the DynamicLayoutSettings entity.

Namespace

Drupal\dynamic_layouts\Entity

Code

public function setFrontendLibrary($frontend_library) {
  $settings = unserialize($this->settings);
  $settings[Constants::FRONTEND_LIBRARY] = $frontend_library;
  $this->settings = serialize($settings);
}