3 namespace Drupal\field_ui;
6 * Defines a class to build a listing of form mode entities.
8 * @see \Drupal\Core\Entity\Entity\EntityFormMode
10 class EntityFormModeListBuilder extends EntityDisplayModeListBuilder {
13 * Filters entities based on their form mode handlers.
16 * The entity type of the entity that needs to be validated.
19 * TRUE if the entity has any forms, FALSE otherwise.
21 protected function isValidEntity($entity_type) {
22 return $this->entityTypes[$entity_type]->hasFormClasses();