/**
* Wraps _comment_entity_uses_integer_id().
*
* @param \Drupal\Core\Entity\EntityTypeInterface $entity_type
* Entity type being tested.
*
* @return bool
* TRUE if entity-type uses integer IDs.
*/
protected function entityTypeSupportsComments(EntityTypeInterface
$entity_type) { return $entity_type->
entityClassImplements(FieldableEntityInterface::
class) &&
_comment_entity_uses_integer_id($entity_type->
id());
} /**
* {@inheritdoc}
*/
public function save(array
$form, FormStateInterface
$form_state) { $comment_type =
$this->entity;
$status =
$comment_type->
save();
$edit_link =
$this->entity->
toLink($this->
t('Edit'
), 'edit-form'
)->
toString();
if ($status == SAVED_UPDATED
) {