More updates to stop using dev or alpha or beta versions.
[yaffs-website] / web / core / modules / field_ui / src / EntityFormModeListBuilder.php
1 <?php
2
3 namespace Drupal\field_ui;
4
5 /**
6  * Defines a class to build a listing of form mode entities.
7  *
8  * @see \Drupal\Core\Entity\Entity\EntityFormMode
9  */
10 class EntityFormModeListBuilder extends EntityDisplayModeListBuilder {
11
12   /**
13    * Filters entities based on their form mode handlers.
14    *
15    * @param $entity_type
16    *   The entity type of the entity that needs to be validated.
17    *
18    * @return bool
19    *   TRUE if the entity has any forms, FALSE otherwise.
20    */
21   protected function isValidEntity($entity_type) {
22     return $this->entityTypes[$entity_type]->hasFormClasses();
23   }
24
25 }