Code Coverage  | 
     ||||||||||
Classes and Traits  | 
      Functions and Methods  | 
      Lines  | 
     ||||||||
| Total |         | 
      0.00%  | 
      0 / 1  | 
              | 
      0.00%  | 
      0 / 1  | 
      CRAP |         | 
      0.00%  | 
      0 / 2  | 
     
| EntityFormModeListBuilder |         | 
      0.00%  | 
      0 / 1  | 
              | 
      0.00%  | 
      0 / 1  | 
      2 |         | 
      0.00%  | 
      0 / 2  | 
     
| isValidEntity |         | 
      0.00%  | 
      0 / 1  | 
      2 |         | 
      0.00%  | 
      0 / 2  | 
     |||
| <?php | |
| /** | |
| * @file | |
| * Contains \Drupal\field_ui\EntityFormModeListBuilder. | |
| */ | |
| namespace Drupal\field_ui; | |
| /** | |
| * Defines a class to build a listing of form mode entities. | |
| * | |
| * @see \Drupal\Core\Entity\Entity\EntityFormMode | |
| */ | |
| class EntityFormModeListBuilder extends EntityDisplayModeListBuilder { | |
| /** | |
| * Filters entities based on their controllers. | |
| * | |
| * @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(); | |
| } | |
| } |