public function LanguageCombination::isEmpty

File

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

Class

LanguageCombination
Plugin implementation of the 'tmgmt_language_combination' field type.

Namespace

Drupal\tmgmt_language_combination\Plugin\Field\FieldType

Code

public function isEmpty() {
  if (empty($this->language_from) || empty($this->language_to) || $this->language_from == '_none' || $this->language_to == '_none') {
    return TRUE;
  }
  return FALSE;
}