Webform module and config export

This commit is contained in:
Rob Davies 2017-03-16 15:29:07 +00:00
parent 3e6a5cbed2
commit 0e15467384
1040 changed files with 117682 additions and 0 deletions

View file

@ -0,0 +1,41 @@
<?php
namespace Drupal\webform\Ajax;
use Drupal\Core\Ajax\CommandInterface;
/**
* Provides an AJAX command for scrolling to the top of an element.
*
* This command is implemented in Drupal.AjaxCommands.prototype.webformScrollTop.
*/
class ScrollTopCommand implements CommandInterface {
/**
* A CSS selector string.
*
* @var string
*/
protected $selector;
/**
* Constructs a \Drupal\webform\Ajax\ScrollTopCommand object.
*
* @param string $selector
* A CSS selector.
*/
public function __construct($selector) {
$this->selector = $selector;
}
/**
* {@inheritdoc}
*/
public function render() {
return [
'command' => 'webformScrollTop',
'selector' => $this->selector,
];
}
}