function EntityField::formatterSettingsAjaxCallback
Same name in other branches
- 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\BlockCode
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',
]));
}