/**
* Creates a new list definition.
*
* @param string $item_type
* The data type of the list items; e.g., 'string', 'integer' or 'any'.
*
* @return static
* A new List Data Definition object.
*/
public static function create($item_type) { return static::
createFromItemType($item_type);
} /**
* {@inheritdoc}
*/
public static function createFromDataType($type) { $definition = parent::
createFromDataType($type);
// If nothing else given, default to a list of 'any' items.
$definition->itemDefinition = DataDefinition::
create('any'
);
return $definition;
}