MapDataDefinition::create

public static MapDataDefinition::create($type = 'map')

Creates a new map definition.

Parameters

string $type: (optional) The data type of the map. Defaults to 'map'.

Return value

static

Overrides DataDefinition::create

File

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

Class

MapDataDefinition
A typed data definition class for defining maps.

Namespace

Drupal\Core\TypedData

Code

public static function create($type = 'map') {
  $definition['type'] = $type;
  return new static($definition);
}
doc_Drupal
2016-10-29 09:25:32
Comments
Leave a Comment

Please login to continue.