for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* This file is part of the ezpublish-kernel package.
* @license For full copyright and license information view LICENSE file distributed with this source code.
*/
namespace eZ\Publish\Core\FieldsGroups;
* A fields groups list implementation based on settings (scalar values) injection.
*
* @internal meant to be instantiated by the DIC. Do not inherit from it or instantiate it manually.
final class SettingsFieldsGroupsList implements FieldsGroupsList
{
/** @var array */
private $groups;
/** @var string */
private $defaultGroup;
public function __construct($defaultGroup, array $groups)
$this->groups = $groups;
$this->defaultGroup = $defaultGroup;
}
public function getGroups()
return $this->groups;
public function getDefaultGroup()
return $this->defaultGroup;