protected function FieldTypeExportBase::allowExportMultipleProperties in Entity Export CSV 8
Default method to allow to export multiple properties.
Any plugin can override this method to enforce the behavior.
Parameters
\Drupal\Core\Field\FieldDefinitionInterface $field_definition: The field definition.
Return value
bool Return TRUE to allow to export multiple properties.
1 call to FieldTypeExportBase::allowExportMultipleProperties()
- FieldTypeExportBase::buildConfigurationForm in src/
Plugin/ FieldTypeExportBase.php - Build the configuration form.
File
- src/
Plugin/ FieldTypeExportBase.php, line 681
Class
- FieldTypeExportBase
- Base class for Field type export plugins.
Namespace
Drupal\entity_export_csv\PluginCode
protected function allowExportMultipleProperties(FieldDefinitionInterface $field_definition) {
$properties = $this
->getPropertyExportOptions($field_definition);
return (bool) (count($properties) > 1);
}