function EntityField::formatterSettingsAjaxCallback

Same name in other branches
  1. 8.x-3.x modules/ctools_block/src/Plugin/Block/EntityField.php \Drupal\ctools_block\Plugin\Block\EntityField::formatterSettingsAjaxCallback()

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',
    ]));
}