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

Breadcrumb

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

function Crawler::slice

Slices the list of nodes by $offset and $length.

File

vendor/symfony/dom-crawler/Crawler.php, line 333

Class

Crawler
Crawler eases navigation of a list of \DOMNode objects.

Namespace

Symfony\Component\DomCrawler

Code

public function slice(int $offset = 0, ?int $length = null) : static {
    return $this->createSubCrawler(\array_slice($this->nodes, $offset, $length));
}
RSS feed
Powered by Drupal