/** * Submit callback for adding a zone member. */ public function addMemberSubmit(array $form, FormStateInterface $form_state) { $plugin_id = $form_state->getValue('plugin'); $member = $this->memberManager->createInstance($plugin_id); $this->entity->addMember($member); $form_state->setRebuild(); }
/** * Submit callback for adding a zone member. */ public function addMemberSubmit(array $form, FormStateInterface $form_state) { $plugin_id = $form_state->getValue('plugin'); /** @var \Drupal\address\Plugin\ZoneMember\ZoneMemberInterface $member */ $member = $this->memberManager->createInstance($plugin_id); $this->entity->addMember($member); $form_state->setRebuild(); }