You are here

GridStackFormatter.php in GridStack 8.2

Same filename and directory in other branches
  1. 8 src/GridStackFormatter.php

Namespace

Drupal\gridstack

File

src/GridStackFormatter.php
View source
<?php

namespace Drupal\gridstack;

use Drupal\blazy\BlazyFormatter;

/**
 * Implements GridStackFormatterInterface.
 */
class GridStackFormatter extends BlazyFormatter implements GridStackFormatterInterface {

  /**
   * {@inheritdoc}
   */
  public function buildSettings(array &$build, $items) {

    // Prepare integration with Blazy.
    $settings =& $build['settings'];
    $settings = array_merge($settings, GridStackDefault::fixedSettings());

    // Pass basic info to parent::buildSettings().
    parent::buildSettings($build, $items);
    $this
      ->getModuleHandler()
      ->alter('gridstack_settings', $build, $items);
  }

}

Classes

Namesort descending Description
GridStackFormatter Implements GridStackFormatterInterface.