function MapDataDefinition::createFromDataType

Same name in other branches
  1. 9 core/lib/Drupal/Core/TypedData/MapDataDefinition.php \Drupal\Core\TypedData\MapDataDefinition::createFromDataType()
  2. 10 core/lib/Drupal/Core/TypedData/MapDataDefinition.php \Drupal\Core\TypedData\MapDataDefinition::createFromDataType()
  3. 11.x core/lib/Drupal/Core/TypedData/MapDataDefinition.php \Drupal\Core\TypedData\MapDataDefinition::createFromDataType()

Overrides DataDefinition::createFromDataType

File

core/lib/Drupal/Core/TypedData/MapDataDefinition.php, line 33

Class

MapDataDefinition
A typed data definition class for defining maps.

Namespace

Drupal\Core\TypedData

Code

public static function createFromDataType($data_type) {
    return static::create($data_type);
}

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