public function EntityEmptyVariable::getSettingsForm in Business Rules 2.x
Same name and namespace in other branches
- 8 src/Plugin/BusinessRulesVariable/EntityEmptyVariable.php \Drupal\business_rules\Plugin\BusinessRulesVariable\EntityEmptyVariable::getSettingsForm()
Return the form array.
@internal param array $form
Parameters
array $form: The form array.
\Drupal\Core\Form\FormStateInterface $form_state: The form state object.
\Drupal\business_rules\ItemInterface $item: The configured item.
Return value
array The render array for the settings form.
Overrides BusinessRulesItemPluginBase::getSettingsForm
File
- src/
Plugin/ BusinessRulesVariable/ EntityEmptyVariable.php, line 56
Class
- EntityEmptyVariable
- Class EntityEmptyVariable.
Namespace
Drupal\business_rules\Plugin\BusinessRulesVariableCode
public function getSettingsForm(array &$form, FormStateInterface $form_state, ItemInterface $item) {
$settings['help'] = [
'#type' => 'markup',
'#markup' => t('After this variable is filled, you may refer to each field of this variable as {{variable_id->field_name}}'),
];
return $settings;
}