public static function SiteSettingEntity::getDefaultFieldset in Site Settings and Labels 8
Default value callback for 'fieldset' base field definition.
Parameters
\Drupal\site_settings\Entity\SiteSettingEntity $entity:
Return value
array An array of default values.
File
- src/
Entity/ SiteSettingEntity.php, line 308
Class
- SiteSettingEntity
- Defines the Site Setting entity.
Namespace
Drupal\site_settings\EntityCode
public static function getDefaultFieldset(SiteSettingEntity $entity) {
$site_settings_entity_type = SiteSettingEntityType::load($entity
->getType());
return [
$site_settings_entity_type
->get('fieldset'),
];
}