public function MigrateSource::getProvider in Drupal 10
Same name and namespace in other branches
- 8 core/modules/migrate/src/Annotation/MigrateSource.php \Drupal\migrate\Annotation\MigrateSource::getProvider()
- 9 core/modules/migrate/src/Annotation/MigrateSource.php \Drupal\migrate\Annotation\MigrateSource::getProvider()
Gets the name of the provider of the annotated class.
Return value
string
Overrides Plugin::getProvider
File
- core/
modules/ migrate/ src/ Annotation/ MigrateSource.php, line 71
Class
- MigrateSource
- Defines a migration source plugin annotation object.
Namespace
Drupal\migrate\AnnotationCode
public function getProvider() {
if (isset($this->definition['provider'])) {
return is_array($this->definition['provider']) ? reset($this->definition['provider']) : $this->definition['provider'];
}
return FALSE;
}