function simple_access_form_node_type_form_builder in Simple Access 8.3
Add the additional simple_access settings to the Node Type config.
See also
simple_access_form_node_type_form_alter()
1 string reference to 'simple_access_form_node_type_form_builder'
- simple_access_form_node_type_form_alter in ./
simple_access.module - Implements hook_form_FORM_ID_alter().
File
- ./
simple_access.module, line 316 - Builds simple access definition for content access.
Code
function simple_access_form_node_type_form_builder($entity_type, NodeTypeInterface $node_type, &$form, FormStateInterface $form_state) {
$node_type
->setThirdPartySetting('simple_access', 'profiles', $form_state
->getValue([
'simple_access',
'profiles',
], []));
$node_type
->setThirdPartySetting('simple_access', 'groups', $form_state
->getValue([
'simple_access',
'groups',
], []));
}