class EntityFormModeListBuilder

Same name and namespace in other branches
  1. 11.x core/modules/field_ui/src/EntityFormModeListBuilder.php \Drupal\field_ui\EntityFormModeListBuilder
  2. 10 core/modules/field_ui/src/EntityFormModeListBuilder.php \Drupal\field_ui\EntityFormModeListBuilder
  3. 8.9.x core/modules/field_ui/src/EntityFormModeListBuilder.php \Drupal\field_ui\EntityFormModeListBuilder

Defines a class to build a listing of form mode entities.

Hierarchy

Expanded class hierarchy of EntityFormModeListBuilder

See also

\Drupal\Core\Entity\Entity\EntityFormMode

File

core/modules/field_ui/src/EntityFormModeListBuilder.php, line 10

Namespace

Drupal\field_ui
View source
class EntityFormModeListBuilder extends EntityDisplayModeListBuilder {
  
  /**
   * Filters entities based on their form mode handlers.
   *
   * @param $entity_type
   *   The entity type of the entity that needs to be validated.
   *
   * @return bool
   *   TRUE if the entity has any forms, FALSE otherwise.
   */
  protected function isValidEntity($entity_type) {
    return $this->entityTypes[$entity_type]
      ->hasFormClasses();
  }

}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.