'type' =>
$bundle['label'
],
];
// Add the bundle to the list of default values if it's enabled on this
// workflow.
$defaults[$bundle_id] =
$workflow_moderation_enabled;
} } if (!
empty($options)) { $bundles_header =
$this->
t('All @entity_type types',
['@entity_type' =>
$this->entityType->
getLabel()]);
if ($bundle_entity_type_id =
$this->entityType->
getBundleEntityType()) { $bundles_header =
$this->
t('All @entity_type_plural_label',
['@entity_type_plural_label' =>
$this->entityTypeManager->
getDefinition($bundle_entity_type_id)->
getPluralLabel()]);
} $form['bundles'
] =
[ '#type' => 'tableselect',
'#header' =>
[ 'type' =>
$bundles_header,
],
'#options' =>
$options,
'#default_value' =>
$defaults,
'#attributes' =>
['class' =>
['no-highlight'
]],
];
}