public static function LanguageCombination::schema

File

translators/tmgmt_local/skills/src/Plugin/Field/FieldType/LanguageCombination.php, line 38

Class

LanguageCombination
Plugin implementation of the 'tmgmt_language_combination' field type.

Namespace

Drupal\tmgmt_language_combination\Plugin\Field\FieldType

Code

public static function schema(FieldStorageDefinitionInterface $field) {
  return array(
    'columns' => array(
      'language_from' => array(
        'description' => 'The langcode of the language from which the user is able to translate.',
        'type' => 'varchar',
        'length' => 10,
      ),
      'language_to' => array(
        'description' => 'The langcode of the language to which the user is able to translate.',
        'type' => 'varchar',
        'length' => 10,
      ),
    ),
    'indexes' => array(
      'language' => array(
        'language_from',
        'language_to',
      ),
    ),
  );
}