public static DataDefinition::create($type)
Creates a new data definition.
string $type: The data type of the data; e.g., 'string', 'integer' or 'any'.
static A new DataDefinition object.
public static function create($type) { $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!DataDefinition.php/function/DataDefinition::create/8.1.x