protected function getBundleFields($core,
$entity_type_id,
$bundle) { $fields =
$this->
getEntityFields($core,
$entity_type_id);
if (!
empty($fields[$bundle])) { return $fields[$bundle];
} return [];
} /**
* Gets the source plugin to use to gather field information.
*
* @param string $core
* The Drupal core version.
*
* @return array|\Drupal\migrate\Plugin\MigrateSourceInterface
* The source plugin, or an empty array if none can be found that meets
* requirements.
*/