You are here

protected static function ModuleBuilderComponentFormBase::decrementCompoundPropertyItemCount in Module Builder 7.2

Decrements 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::decrementCompoundPropertyItemCount()
ModuleBuilderComponentFormBase::removeItemSubmit in includes/module_builder.form.inc
Submission handler for the "Remove item" buttons.

File

includes/module_builder.form.inc, line 931

Class

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

Code

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