/** * @inheritdoc */ public static function getDefaultAllValue(FieldableEntityInterface $entity, FieldDefinitionInterface $definition) { // @TODO: This may become configurable. $item = FALSE; switch ($entity->getEntityType()) { case 'user': case 'node': $item = FALSE; break; default: break; } return $item; }