Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. ScrollTopCommand.php

function ScrollTopCommand::__construct

Constructs a \Drupal\Core\Ajax\ScrollTopCommand object.

Parameters

string $selector: A CSS selector.

File

core/lib/Drupal/Core/Ajax/ScrollTopCommand.php, line 25

Class

ScrollTopCommand
Provides an AJAX command for scrolling to the top of an element.

Namespace

Drupal\Core\Ajax

Code

public function __construct($selector) {
    $this->selector = $selector;
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal