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

Breadcrumb

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

function Row::get

Retrieve a source or destination property.

If the property key begins with '@' return a destination property, otherwise return a source property. the '@' symbol itself can be escaped as '@@'. Returns NULL if property is not found. Useful in process plugins to retrieve a row property specified in a configuration key which may be either a source or destination property prefixed with an '@'.

Parameters

string $property: The property to get.

Return value

mixed|null The requested property.

File

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

Class

Row
Stores a row.

Namespace

Drupal\migrate

Code

public function get($property) {
    $values = $this->getMultiple([
        $property,
    ]);
    return reset($values);
}

API Navigation

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