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); }
Please login to continue.