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

Breadcrumb

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

function Row::hasSourceProperty

Determines whether a source has a property.

Parameters

string $property: A property on the source.

Return value

bool TRUE if the source has property; FALSE otherwise.

1 call to Row::hasSourceProperty()
Row::__construct in core/modules/migrate/src/Row.php
Constructs a \Drupal\migrate\Row object.

File

core/modules/migrate/src/Row.php, line 132

Class

Row
Stores a row.

Namespace

Drupal\migrate

Code

public function hasSourceProperty($property) {
    return NestedArray::keyExists($this->source, explode(static::PROPERTY_SEPARATOR, $property));
}
RSS feed
Powered by Drupal