Overrides ParagraphsBehaviorBase::validateConfigurationForm
public function validateConfigurationForm(array &$form, FormStateInterface $form_state) {
if ($form_state
->getValue('default_color') == 'red') {
$form_state
->setErrorByName('default_color', $this
->t('Red can not be used as the default color.'));
}
}