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

Breadcrumb

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

function Crawler::previousAll

Returns the previous sibling nodes of the current selection.

Throws

\InvalidArgumentException

File

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

Class

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

Namespace

Symfony\Component\DomCrawler

Code

public function previousAll() : static {
    if (!$this->nodes) {
        throw new \InvalidArgumentException('The current node list is empty.');
    }
    return $this->createSubCrawler($this->sibling($this->getNode(0), 'previousSibling'));
}
RSS feed
Powered by Drupal