You are here

protected function FeedTypeForm::getPluginForms in Feeds 8.3

Returns the plugin forms for this feed type.

Return value

\Drupal\feeds\Plugin\Type\ExternalPluginFormInterface[] A list of form objects, keyed by plugin id.

2 calls to FeedTypeForm::getPluginForms()
FeedTypeForm::submitForm in src/FeedTypeForm.php
This is the default entity object builder function. It is called before any other submit handler to build the new entity object to be used by the following submit handlers. At this point of the form workflow the entity is validated and the form state…
FeedTypeForm::validateForm in src/FeedTypeForm.php
Form validation handler.

File

src/FeedTypeForm.php, line 286

Class

FeedTypeForm
Form controller for the feed type edit forms.

Namespace

Drupal\feeds

Code

protected function getPluginForms() {
  $plugins = [];
  foreach ($this->entity
    ->getPlugins() as $type => $plugin) {
    if ($this
      ->pluginHasForm($plugin, 'configuration')) {
      $plugins[$type] = $this->formFactory
        ->createInstance($plugin, 'configuration');
    }
  }
  return $plugins;
}