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

Breadcrumb

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

function Sql::valid

Implementation of \Iterator::valid().

This is called at the top of the loop, returning TRUE to process the loop and FALSE to terminate it.

2 calls to Sql::valid()
Sql::currentDestination in core/modules/migrate/src/Plugin/migrate/id_map/Sql.php
Looks up the destination identifier currently being iterated.
Sql::currentSource in core/modules/migrate/src/Plugin/migrate/id_map/Sql.php
Looks up the source identifier(s) currently being iterated.

File

core/modules/migrate/src/Plugin/migrate/id_map/Sql.php, line 1005

Class

Sql
Defines the sql based ID map implementation.

Namespace

Drupal\migrate\Plugin\migrate\id_map

Code

public function valid() : bool {
    return $this->currentRow !== FALSE;
}

API Navigation

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