public static function 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\TypedDataCode
public static function create($type = 'map') { $definition['type'] = $type; return new static($definition); }
© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Core!TypedData!MapDataDefinition.php/function/MapDataDefinition::create/8.1.x