You are here

protected function PullForm::prepareRemoteOptions in Entity Share 8.2

Same name and namespace in other branches
  1. 8 modules/entity_share_client/src/Form/PullForm.php \Drupal\entity_share_client\Form\PullForm::prepareRemoteOptions()

Helper function.

Return value

string[] An array of remote websites.

1 call to PullForm::prepareRemoteOptions()
PullForm::buildForm in modules/entity_share_client/src/Form/PullForm.php
Form constructor.

File

modules/entity_share_client/src/Form/PullForm.php, line 350

Class

PullForm
Form controller to pull entities.

Namespace

Drupal\entity_share_client\Form

Code

protected function prepareRemoteOptions() {
  $options = [];
  foreach ($this->remoteWebsites as $id => $remote_website) {
    $options[$id] = $remote_website
      ->label();
  }
  return $options;
}