protected function EntityExportCsvSettings::getElementPropertyValue in Entity Export CSV 8
Get element property value.
Parameters
array|string $property: The property.
\Drupal\Core\Form\FormStateInterface $form_state: The form state.
mixed $default: The default value.
Return value
array|mixed|null The property value.
1 call to EntityExportCsvSettings::getElementPropertyValue()
- EntityExportCsvSettings::buildForm in src/
Form/ EntityExportCsvSettings.php - Form constructor.
File
- src/
Form/ EntityExportCsvSettings.php, line 276
Class
- EntityExportCsvSettings
- Define entity export csv settings form.
Namespace
Drupal\entity_export_csv\FormCode
protected function getElementPropertyValue($property, FormStateInterface $form_state, $default = '') {
$test = $form_state
->hasValue($property) ? $form_state
->getValue($property) : '';
return $form_state
->hasValue($property) ? $form_state
->getValue($property) : $default;
}