function ListDataDefinition::getDataType

Same name in other branches
  1. 9 core/lib/Drupal/Core/TypedData/ListDataDefinition.php \Drupal\Core\TypedData\ListDataDefinition::getDataType()
  2. 8.9.x core/lib/Drupal/Core/TypedData/ListDataDefinition.php \Drupal\Core\TypedData\ListDataDefinition::getDataType()
  3. 11.x core/lib/Drupal/Core/TypedData/ListDataDefinition.php \Drupal\Core\TypedData\ListDataDefinition::getDataType()

Overrides DataDefinition::getDataType

1 method overrides ListDataDefinition::getDataType()
SequenceDataDefinition::getDataType in core/lib/Drupal/Core/Config/Schema/SequenceDataDefinition.php
Returns the data type of the data.

File

core/lib/Drupal/Core/TypedData/ListDataDefinition.php, line 58

Class

ListDataDefinition
A typed data definition class for defining lists.

Namespace

Drupal\Core\TypedData

Code

public function getDataType() {
    return 'list';
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.