public function EntityExportCsvManager::getConfigurations in Entity Export CSV 8
Get the entity export csv configurations.
Parameters
string $entity_type_id: The entity type id.
Return value
\Drupal\entity_export_csv\Entity\EntityExportCsvInterface[] The entity export csv config entities.
Throws
\Drupal\Component\Plugin\Exception\InvalidPluginDefinitionException
\Drupal\Component\Plugin\Exception\PluginNotFoundException
Overrides EntityExportCsvManagerInterface::getConfigurations
File
- src/
EntityExportCsvManager.php, line 321
Class
- EntityExportCsvManager
- Class EntityExportCsvManager.
Namespace
Drupal\entity_export_csvCode
public function getConfigurations($entity_type_id = '') {
$entity_export_csv = [];
$query = $this->entityTypeManager
->getStorage('entity_export_csv')
->getQuery();
$query
->condition('status', 1);
if (!empty($entity_type_id)) {
$query
->condition('entity_type_id', $entity_type_id);
}
$result = $query
->execute();
if (!empty($result)) {
$entity_export_csv = $this->entityTypeManager
->getStorage('entity_export_csv')
->loadMultiple($result);
}
return $entity_export_csv;
}