function Migration::get

Gets any arbitrary property's value.

Parameters

string $property: The property to retrieve.

Return value

mixed The value for that property, or NULL if the property does not exist.

Deprecated

in drupal:8.1.0 and is removed from drupal:9.0.0. Use more specific getters instead.

See also

https://www.drupal.org/node/2873795

File

core/modules/migrate/src/Plugin/Migration.php, line 330

Class

Migration
Defines the Migration plugin.

Namespace

Drupal\migrate\Plugin

Code

public function get($property) {
    @trigger_error('\\Drupal\\migrate\\Plugin\\Migration::get() is deprecated in Drupal 8.1.x, will be removed before Drupal 9.0.x. Use more specific getters instead. See https://www.drupal.org/node/2873795', E_USER_DEPRECATED);
    return isset($this->{$property}) ? $this->{$property} : NULL;
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.