You are here

public function GdprFieldConfigEntity::getFilename in General Data Protection Regulation 8.2

Same name and namespace in other branches
  1. 8 modules/gdpr_fields/src/Entity/GdprFieldConfigEntity.php \Drupal\gdpr_fields\Entity\GdprFieldConfigEntity::getFilename()
  2. 3.0.x modules/gdpr_fields/src/Entity/GdprFieldConfigEntity.php \Drupal\gdpr_fields\Entity\GdprFieldConfigEntity::getFilename()

Gets the export filename.

Parameters

string $bundle: The bundle.

Return value

string The filename of the file to store export data in.

1 call to GdprFieldConfigEntity::getFilename()
GdprFieldConfigEntity::getField in modules/gdpr_fields/src/Entity/GdprFieldConfigEntity.php
Gets field metadata.

File

modules/gdpr_fields/src/Entity/GdprFieldConfigEntity.php, line 154

Class

GdprFieldConfigEntity
Defines a GDPR Field configuration entity.

Namespace

Drupal\gdpr_fields\Entity

Code

public function getFilename($bundle) {
  if (isset($this->filenames[$bundle])) {
    return $this->filenames[$bundle];
  }
  return $this->id;
}