You are here

protected function FeedForm::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()

3 calls to FeedForm::pluginHasForm()
FeedForm::form in src/FeedForm.php
Gets the actual form array to be built.
FeedForm::submitForm in src/FeedForm.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…
FeedForm::validateForm in src/FeedForm.php
@todo Don't call buildEntity() here.

File

src/FeedForm.php, line 256

Class

FeedForm
Form controller for the feed edit forms.

Namespace

Drupal\feeds

Code

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