You are here

public function DynamicLayoutSettings::setGridColumnCount in Dynamic Layouts 8

Set the grid column count.

Parameters

string $new_grid_column_count: The grid column count.

Overrides DynamicLayoutSettingsInterface::setGridColumnCount

File

src/Entity/DynamicLayoutSettings.php, line 138

Class

DynamicLayoutSettings
Defines the DynamicLayoutSettings entity.

Namespace

Drupal\dynamic_layouts\Entity

Code

public function setGridColumnCount($grid_column_count) {
  $settings = unserialize($this->settings);
  $settings[Constants::GRID_COLUMN_COUNT] = $grid_column_count;
  $this->settings = serialize($settings);
}