public function TacjsSettings::getFieldsSelects in TacJS 8
Same name and namespace in other branches
- 8.2 src/TacjsSettings.php \Drupal\tacjs\TacjsSettings::getFieldsSelects()
Function return config selected.
Parameters
mixed $type: Variable for check variable "les services regie publicitaire".
Return value
array This function return all services selects.
File
- src/
TacjsSettings.php, line 237
Class
- TacjsSettings
- Class TacjsSettings.
Namespace
Drupal\tacjsCode
public function getFieldsSelects($type = NULL) {
$values_selected = $this
->getValuesStepOne();
$fields = [];
$fields['social_networks'] = !empty($values_selected['type_social_networks']) ? $this
->getFields($values_selected['type_social_networks'], TacjsSettings::SOCIAL_NETWORKS) : [];
$fields['apis'] = !empty($values_selected['type_apis']) ? $this
->getFields($values_selected['type_apis'], TacjsSettings::APIS) : [];
$fields['comment'] = !empty($values_selected['type_commentaire']) ? $this
->getFields($values_selected['type_commentaire'], TacjsSettings::COMMENT) : [];
$fields['mesure_audience'] = !empty($values_selected['type_mesure_audience']) ? $this
->getFields($values_selected['type_mesure_audience'], TacjsSettings::MESURE_AUDIENCE) : [];
$fields['support'] = !empty($values_selected['type_support']) ? $this
->getFields($values_selected['type_support'], TacjsSettings::SUPPORT) : [];
$fields['regie_pub'] = !empty($values_selected['type_regie_publicitaire']) ? $this
->getFields($values_selected['type_regie_publicitaire'], TacjsSettings::REGIE_PUBLICITAIRE, $type) : [];
return $fields;
}