You are here

public function SocialPrivateMessageMemberFormatter::ajaxCallback in Open Social 8

Ajax callback for settings form.

File

modules/social_features/social_private_message/src/Plugin/Field/Fieldformatter/SocialPrivateMessageMemberFormatter.php, line 184

Class

SocialPrivateMessageMemberFormatter
Class SocialPrivateMessageMemberFormatter.

Namespace

Drupal\social_private_message\Plugin\Field\FieldFormatter

Code

public function ajaxCallback(array $form, FormStateInterface $form_state) {
  return $form['fields'][$this
    ->getFieldName()]['plugin']['settings_edit_form']['settings']['entity_display_mode'];
}