You are here

protected static function ModuleBuilderComponentFormBase::incrementCompoundPropertyItemCount in Module Builder 7.2

Increments the item count for a compound property from the form state.

Parameters

$form_state: The form state.

array $property_address: The value address.

1 call to ModuleBuilderComponentFormBase::incrementCompoundPropertyItemCount()
ModuleBuilderComponentFormBase::addItemSubmit in includes/module_builder.form.inc
Submission handler for the "Add another item" buttons.

File

includes/module_builder.form.inc, line 916

Class

ModuleBuilderComponentFormBase
Backport of ComponentFormBase from 8.x-3.x version.

Code

protected static function incrementCompoundPropertyItemCount($form_state, $property_address) {
  $item_count = static::getCompoundPropertyItemCount($form_state, $property_address);
  $item_count++;
  static::setCompoundPropertyItemCount($form_state, $property_address, $item_count);
}