/**
  * {@inheritdoc}
  */
 public function buildForm(array $form, FormStateInterface $form_state, NodeTypeInterface $node_type = NULL)
 {
     $this->attributeTable = 'uc_class_attributes';
     $this->optionTable = 'uc_class_attribute_options';
     $this->idField = 'pcid';
     $this->idValue = $node_type->id();
     $attributes = uc_class_get_attributes($node_type->id());
     return parent::buildForm($form, $form_state, $attributes);
 }
 /**
  * {@inheritdoc}
  */
 public function submitForm(array &$form, FormStateInterface $form_state)
 {
     parent::submitForm($form, $form_state);
     // Clear the page and block caches.
     Cache::invalidateTags(['content']);
 }