Add text field to poll entity I have installed the Poll module in Drupal 8. I need to add a field to it, such as a text area for the poll description.

How can I add a field to a content entity like Poll, which is not a content type?
Poll is not a fieldable entity, so this is not possible in ui.

You can do this in code:

use Drupal\Core\Entity\EntityTypeInterface;
use Drupal\Core\Field\BaseFieldDefinition;
/**
 * Implements hook_entity_base_field_info().
 */
function mymodule_entity_base_field_info(EntityTypeInterface $entity_type) {
  if ($entity_type-&gt;id() === 'poll') {
    $fields['description'] = BaseFieldDefinition::create('text')
      -&gt;setLabel(t('New discription field'))
      -&gt;setTranslatable(TRUE);
    return $fields;
  }
}


Apply the schema update on the database:

drush entity-updates