public function GroupHasNodeCondition::getSettingsForm in Business Rules 2.x
Same name and namespace in other branches
- 8 modules/br_group/src/Plugin/BusinessRulesCondition/GroupHasNodeCondition.php \Drupal\br_group\Plugin\BusinessRulesCondition\GroupHasNodeCondition::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
- modules/
br_group/ src/ Plugin/ BusinessRulesCondition/ GroupHasNodeCondition.php, line 35
Class
- GroupHasNodeCondition
- Class GroupHasNodeCondition.
Namespace
Drupal\br_group\Plugin\BusinessRulesConditionCode
public function getSettingsForm(array &$form, FormStateInterface $form_state, ItemInterface $item) {
$settings['node_id'] = [
'#type' => 'textfield',
'#title' => t('Node Id'),
'#required' => TRUE,
'#description' => t('The node id. You may use variable or token to fill this information'),
'#default_value' => $item
->getSettings('node_id'),
];
$settings['group_id'] = [
'#type' => 'textfield',
'#title' => t('Group Id'),
'#required' => TRUE,
'#description' => t('The group id. You may use variable or token to fill this information'),
'#default_value' => $item
->getSettings('group_id'),
];
return $settings;
}