public static function LanguageCombination::propertyDefinitions

File

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

Class

LanguageCombination
Plugin implementation of the 'tmgmt_language_combination' field type.

Namespace

Drupal\tmgmt_language_combination\Plugin\Field\FieldType

Code

public static function propertyDefinitions(FieldStorageDefinitionInterface $field) {
  $property_definitions['language_from'] = DataDefinition::create('string')
    ->setLabel(t('From language'));
  $property_definitions['language_to'] = DataDefinition::create('string')
    ->setLabel(t('To language'));
  return $property_definitions;
}