Further modules included.
[yaffs-website] / web / modules / contrib / drupalmoduleupgrader / src / ConverterInterface.php
1 <?php
2
3 namespace Drupal\drupalmoduleupgrader;
4
5 /**
6  * Interface implemented by all plugins which can modify a Drupal 7 module and
7  * convert part of it to Drupal 8.
8  */
9 interface ConverterInterface {
10
11   /**
12    * Returns if this conversion applies to the target module. If FALSE,
13    * the convert() method will not be called.
14    *
15    * @param TargetInterface $target
16    *  The target module.
17    *
18    * @return boolean
19    */
20   public function isExecutable(TargetInterface $target);
21
22   /**
23    * Performs required conversions.
24    *
25    * @param TargetInterface $target
26    *  The target module to convert.
27    */
28   public function convert(TargetInterface $target);
29
30 }