You are here

public function PrivateMessageThreadMemberFormatter::ajaxCallback in Private Message 8

Same name and namespace in other branches
  1. 8.2 src/Plugin/Field/FieldFormatter/PrivateMessageThreadMemberFormatter.php \Drupal\private_message\Plugin\Field\FieldFormatter\PrivateMessageThreadMemberFormatter::ajaxCallback()

Ajax callback for settings form.

File

src/Plugin/Field/FieldFormatter/PrivateMessageThreadMemberFormatter.php, line 208

Class

PrivateMessageThreadMemberFormatter
Defines the private message member field formatter.

Namespace

Drupal\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'];
}