You are here

public function DynamicLayoutSettings::getFrontendColumnClasses in Dynamic Layouts 8

Get the frontend column classes.

Overrides DynamicLayoutSettingsInterface::getFrontendColumnClasses

File

src/Entity/DynamicLayoutSettings.php, line 147

Class

DynamicLayoutSettings
Defines the DynamicLayoutSettings entity.

Namespace

Drupal\dynamic_layouts\Entity

Code

public function getFrontendColumnClasses() {
  $frontend_library = $this
    ->getFrontendLibrary();

  // Get the column classes based on the chosen frontend library.
  switch ($frontend_library) {
    case 'custom':
      $column_classes = $this
        ->getCustomColumnClasses();
      break;
    case Constants::BOOTSTRAP:
    default:
      $column_classes = $this
        ->getBootstrapColumnClasses();
      break;
  }
  return $column_classes;
}