function PreExportEvent::setExportable
Toggles whether a specific field should be exported.
Parameters
string $name: The name of the field.
bool $export: Whether to export the field, even if it is computed.
1 call to PreExportEvent::setExportable()
- PreExportEvent::setEntityKeyExportable in core/
lib/ Drupal/ Core/ DefaultContent/ PreExportEvent.php - Toggles whether a specific entity key should be exported.
File
-
core/
lib/ Drupal/ Core/ DefaultContent/ PreExportEvent.php, line 74
Class
- PreExportEvent
- Event dispatched before an entity is exported as default content.
Namespace
Drupal\Core\DefaultContentCode
public function setExportable(string $name, bool $export = TRUE) : void {
$this->allowList[$name] = $export;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.