You are here

public function Functions::getFields in Drupal 7 to 8/9 Module Upgrader 8

Overrides IndexerBase::getFields

File

src/Plugin/DMU/Indexer/Functions.php, line 126

Class

Functions
Plugin annotation @Indexer( id = "function" )

Namespace

Drupal\drupalmoduleupgrader\Plugin\DMU\Indexer

Code

public function getFields() {
  $fields = parent::getFields();
  $fields['type'] = [
    'type' => 'varchar',
    'length' => 255,
    'not null' => TRUE,
  ];
  $fields['has_logic'] = [
    'type' => 'int',
    'size' => 'tiny',
    'unsigned' => TRUE,
  ];
  return $fields;
}