search-result.html.twig

Default theme implementation for displaying a single search result. This template renders a single search result. The list of results is rendered using '#theme' => 'item_list', with suggestions of: item_list__search_results__(plugin_id) item_list__search_results Available variables: url: URL of the result. title: Title of the result. snippet: A small preview of the result. Does not apply to user searches. info: String of all the meta information ready for print. Does not apply to user

Search interface

The Drupal search interface manages a global search mechanism. Modules may plug into this system to provide searches of different types of data. Most of the system is handled by the Search module, so this must be enabled for all of the search features to work. There are two ways to interact with the search system: Specifically for searching nodes, you can implement hook_node_update_index() and hook_node_search_result(). However, note that the search system already indexes all visible output of

Search

Provides an HTML5 input element with type of "search". Usage example: $form['search'] = array( '#type' => 'search', '#title' => $this->t('Search'), ); Plugin annotation @FormElement("search") Hierarchy class \Drupal\Component\Plugin\PluginBase implements DerivativeInspectionInterface, PluginInspectionInterfaceclass \Drupal\Core\Plugin\PluginBase uses DependencySerializationTrait, StringTranslationTraitclass \Drupal\Core\Render\Element\RenderElement implements ElementInterfaceclas

ScrollTopCommand::__construct

public ScrollTopCommand::__construct($selector) Constructs a \Drupal\views\Ajax\ScrollTopCommand object. Parameters string $selector: A CSS selector. File core/modules/views/src/Ajax/ScrollTopCommand.php, line 27 Class ScrollTopCommand Provides an AJAX command for scrolling to the top of an element. Namespace Drupal\views\Ajax Code public function __construct($selector) { $this->selector = $selector; }

ScrollTopCommand::render

public ScrollTopCommand::render() Return an array to be run through json_encode and sent to the client. Overrides CommandInterface::render File core/modules/views/src/Ajax/ScrollTopCommand.php, line 34 Class ScrollTopCommand Provides an AJAX command for scrolling to the top of an element. Namespace Drupal\views\Ajax Code public function render() { return array( 'command' => 'viewsScrollTop', 'selector' => $this->selector, ); }

ScrollTopCommand::$selector

A CSS selector string. Type: string File core/modules/views/src/Ajax/ScrollTopCommand.php, line 19 Class ScrollTopCommand Provides an AJAX command for scrolling to the top of an element. Namespace Drupal\views\Ajax Code protected $selector;

ScrollTopCommand

Provides an AJAX command for scrolling to the top of an element. This command is implemented in Drupal.AjaxCommands.prototype.viewsScrollTop. Hierarchy class \Drupal\views\Ajax\ScrollTopCommand implements CommandInterface File core/modules/views/src/Ajax/ScrollTopCommand.php, line 12 Namespace Drupal\views\Ajax Members Name Modifiers Type Description ScrollTopCommand::$selector protected property A CSS selector string. ScrollTopCommand::render public function Ret

SCHEMA_UNINSTALLED

Indicates that a module has not been installed yet. Related topics Schema API API to handle database schemas. File core/includes/schema.inc, line 16 Schema API handling functions. Code const SCHEMA_UNINSTALLED = -1;

SchemaObjectExistsException

Exception thrown if an object being created already exists. For example, this exception should be thrown whenever there is an attempt to create a new database table, field, or index that already exists in the database schema. Hierarchy class \Drupal\Core\Database\SchemaException extends \RuntimeException implements DatabaseExceptionclass \Drupal\Core\Database\SchemaObjectExistsException implements DatabaseException File core/lib/Drupal/Core/Database/SchemaObjectExistsException.php, line 12

SchemaObjectDoesNotExistException

Exception thrown if an object being modified doesn't exist yet. For example, this exception should be thrown whenever there is an attempt to modify a database table, field, or index that does not currently exist in the database schema. Hierarchy class \Drupal\Core\Database\SchemaException extends \RuntimeException implements DatabaseExceptionclass \Drupal\Core\Database\SchemaObjectDoesNotExistException implements DatabaseException File core/lib/Drupal/Core/Database/SchemaObjectDoesNotExistE