ConverterInterface.php in Drupal 7 to 8/9 Module Upgrader 8
Namespace
Drupal\drupalmoduleupgraderFile
src/ConverterInterface.phpView source
<?php
namespace Drupal\drupalmoduleupgrader;
/**
* Interface implemented by all plugins which can modify a Drupal 7 module and
* convert part of it to Drupal 8.
*/
interface ConverterInterface {
/**
* Returns if this conversion applies to the target module. If FALSE,
* the convert() method will not be called.
*
* @param TargetInterface $target
* The target module.
*
* @return bool
*/
public function isExecutable(TargetInterface $target);
/**
* Performs required conversions.
*
* @param TargetInterface $target
* The target module to convert.
*/
public function convert(TargetInterface $target);
}
Interfaces
Name | Description |
---|---|
ConverterInterface | Interface implemented by all plugins which can modify a Drupal 7 module and convert part of it to Drupal 8. |