You are here

public function LanguageCombination::isEmpty in Translation Management Tool 8

Determines whether the data structure is empty.

Return value

bool TRUE if the data structure is empty, FALSE otherwise.

Overrides Map::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;
}