You are here

interface ConverterInterface in Drupal 7 to 8/9 Module Upgrader 8

Interface implemented by all plugins which can modify a Drupal 7 module and convert part of it to Drupal 8.

Hierarchy

Expanded class hierarchy of ConverterInterface

All classes that implement ConverterInterface

1 string reference to 'ConverterInterface'
drupalmoduleupgrader.services.yml in ./drupalmoduleupgrader.services.yml
drupalmoduleupgrader.services.yml

File

src/ConverterInterface.php, line 9

Namespace

Drupal\drupalmoduleupgrader
View source
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);

}

Members

Namesort descending Modifiers Type Description Overrides
ConverterInterface::convert public function Performs required conversions. 30
ConverterInterface::isExecutable public function Returns if this conversion applies to the target module. If FALSE, the convert() method will not be called. 1