You are here

public static function EntityField::formatterSettingsAjaxCallback in Chaos Tool Suite (ctools) 8.3

Render API callback: gets the layout settings elements.

File

modules/ctools_block/src/Plugin/Block/EntityField.php, line 279

Class

EntityField
Provides a block to a field on an entity.

Namespace

Drupal\ctools_block\Plugin\Block

Code

public static function formatterSettingsAjaxCallback(array $form, FormStateInterface $form_state) {
  $formatter_array_parents = $form['#formatter_array_parents'];
  return NestedArray::getValue($form, array_merge($formatter_array_parents, [
    'formatter_settings_wrapper',
  ]));
}