Defines an interface for tripal importer plugins.
◆ form()
| Drupal\tripal\TripalPubParser\Interfaces\TripalPubParserInterface::form |
( |
|
$form, |
|
|
& |
$form_state |
|
) |
| |
Provides form elements to be added for specifying criteria for parsing.
These form elements are added after the file uploader section that is automaticaly provided by the TripalImporter.
- Parameters
-
| array | $form | The form array definition. |
| \Drupal\Core\Form\FormStateInterface | $form_state | The form state object. |
- Returns
- array A new form array definition.
◆ formSubmit()
| Drupal\tripal\TripalPubParser\Interfaces\TripalPubParserInterface::formSubmit |
( |
|
$form, |
|
|
& |
$form_state |
|
) |
| |
Handles submission of the form elements.
The form elements provided in the implementation of the form() function can be used for special submit if needed.
- Parameters
-
| array | $form | The form array definition. |
| \Drupal\Core\Form\FormStateInterface | $form_state | The form state object. |
◆ formValidate()
| Drupal\tripal\TripalPubParser\Interfaces\TripalPubParserInterface::formValidate |
( |
|
$form, |
|
|
& |
$form_state |
|
) |
| |
Handles validation of the form elements.
The form elements provided in the implementation of the form() function should be validated using this function.
- Parameters
-
| array | $form | The form array definition.* |
| \Drupal\Core\Form\FormStateInterface | $form_state | The form state object. |
◆ run()
| Drupal\tripal\TripalPubParser\Interfaces\TripalPubParserInterface::run |
( |
array |
$criteria | ) |
|
Performs the import.
- Parameters
-
| array | $criteria | The criteria used by the parser to retrieve and parse results. |
- Returns
- array The uniform publication information array.
The documentation for this interface was generated from the following file:
- tripal/src/TripalPubParser/Interfaces/TripalPubParserInterface.php