You are here

protected function FeedTypeForm::pluginHasForm in Feeds 8.3

Returns whether or not the plugin implements a form for the given type.

Parameters

\Drupal\feeds\Plugin\Type\FeedsPluginInterface $plugin: The Feeds plugin.

string $operation: The type of form to check for. See \Drupal\feeds\Plugin\PluginFormFactory::hasForm() for more information.

Return value

bool True if the plugin implements a form of the given type. False otherwise.

See also

\Drupal\feeds\Plugin\PluginFormFactory::hasForm()

2 calls to FeedTypeForm::pluginHasForm()
FeedTypeForm::form in src/FeedTypeForm.php
Gets the actual form array to be built.
FeedTypeForm::getPluginForms in src/FeedTypeForm.php
Returns the plugin forms for this feed type.

File

src/FeedTypeForm.php, line 441

Class

FeedTypeForm
Form controller for the feed type edit forms.

Namespace

Drupal\feeds

Code

protected function pluginHasForm(FeedsPluginInterface $plugin, $operation) {
  return $this->formFactory
    ->hasForm($plugin, $operation);
}