for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace NerdsAndCompany\Schematic\DataTypes;
use Craft;
use NerdsAndCompany\Schematic\Schematic;
/**
* Schematic UserGroups DataType.
*
* Sync Craft Setups.
* @author Nerds & Company
* @copyright Copyright (c) 2015-2019, Nerds & Company
* @license MIT
* @see http://www.nerds.company
*/
class UserGroupDataType extends Base
{
* {@inheritdoc}
public function getMapperHandle(): string
return 'modelMapper';
}
public function getRecords(): array
return Craft::$app->userGroups->getAllGroups();