You are here

public function SalesforceMapping::getPluginCollections in Salesforce Suite 5.0.x

Same name and namespace in other branches
  1. 8.4 modules/salesforce_mapping/src/Entity/SalesforceMapping.php \Drupal\salesforce_mapping\Entity\SalesforceMapping::getPluginCollections()

Gets the plugin collections used by this object.

Return value

\Drupal\Component\Plugin\LazyPluginCollection[] An array of plugin collections, keyed by the property name they use to store their configuration.

Overrides ObjectWithPluginCollectionInterface::getPluginCollections

File

modules/salesforce_mapping/src/Entity/SalesforceMapping.php, line 273

Class

SalesforceMapping
Defines a Salesforce Mapping configuration entity class.

Namespace

Drupal\salesforce_mapping\Entity

Code

public function getPluginCollections() {
  if (empty($this->field_mappings)) {
    return [];
  }
  return [
    'field_mappings' => new DefaultLazyPluginCollection($this
      ->fieldManager(), $this->field_mappings),
  ];
}