md_slider-1.5.4/src/Ajax/ImageDialogSave.php

src/Ajax/ImageDialogSave.php
<?php

/**
 * @file
 * Contains \Drupal\md_slider\Ajax\ImageDialogSave.
 */

namespace Drupal\md_slider\Ajax;

use Drupal\Core\Ajax\CommandInterface;

/**
 * Provides an AJAX command for saving the contents of an editor dialog.
 *
 * This command is implemented in editor.dialog.js in
 * Drupal.AjaxCommands.prototype.editorDialogSave.
 */
class ImageDialogSave implements CommandInterface {

  /**
   * An array of values that will be passed back to the editor by the dialog.
   *
   * @var string
   */
  protected $values;

  /**
   * Constructs a EditorDialogSave object.
   *
   * @param string $values
   *   The values that should be passed to the form constructor in Drupal.
   */
  public function __construct($values) {
    $this->values = $values;
  }

  /**
   * {@inheritdoc}
   */
  public function render() {
    return array(
      'command' => 'imageDialogSave',
      'values' => $this->values,
    );
  }

}

Главная | Обратная связь

drupal hosting | друпал хостинг | it patrol .inc