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

Breadcrumb

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

function MigrateSource::getProviders

Overrides MultipleProviderAnnotationInterface::getProviders

File

core/modules/migrate/src/Annotation/MigrateSource.php, line 81

Class

MigrateSource
Defines a migration source plugin annotation object.

Namespace

Drupal\migrate\Annotation

Code

public function getProviders() {
    if (isset($this->definition['provider'])) {
        // Ensure that we return an array even if
        // \Drupal\Component\Annotation\AnnotationInterface::setProvider() has
        // been called.
        return (array) $this->definition['provider'];
    }
    return [];
}

API Navigation

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