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

Breadcrumb

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

function MigrationLookup::isValid

Determines if the value is valid for lookup.

The only values considered invalid are: NULL, FALSE, [] and "".

Parameters

string $value: The value to test.

Return value

bool Return true if the value is valid.

File

core/modules/migrate/src/Plugin/migrate/process/MigrationLookup.php, line 318

Class

MigrationLookup
Looks up the value of a property based on a previous migration.

Namespace

Drupal\migrate\Plugin\migrate\process

Code

protected function isValid($value) {
    return !in_array($value, [
        NULL,
        FALSE,
        [],
        "",
    ], TRUE);
}

API Navigation

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