- else {
- // If a list definition is used but no class has been specified, derive
- // the default list class from the item type.
- $item_type_definition = \Drupal::typedDataManager()
- ->getDefinition($this->getItemDefinition()->getDataType());
- if (!$item_type_definition) {
- throw new \LogicException("An invalid data type '{$this->getItemDefinition()->getDataType()}' has been specified for list items");
- }
- return $item_type_definition['list_class'];
+
+ // If a list definition is used but no class has been specified, derive the
+ // default list class from the item type.
+ $item_type_definition = \Drupal::typedDataManager()
+ ->getDefinition($this->getItemDefinition()->getDataType());
+ if (!$item_type_definition) {
+ throw new \LogicException("An invalid data type '{$this->getItemDefinition()->getDataType()}' has been specified for list items");