protected function EntityFormModeListBuilder::isValidEntity in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/modules/field_ui/src/EntityFormModeListBuilder.php \Drupal\field_ui\EntityFormModeListBuilder::isValidEntity()
Filters entities based on their controllers.
Parameters
$entity_type: The entity type of the entity that needs to be validated.
Return value
bool TRUE if the entity has any forms, FALSE otherwise.
Overrides EntityDisplayModeListBuilder::isValidEntity
File
- core/
modules/ field_ui/ src/ EntityFormModeListBuilder.php, line 26 - Contains \Drupal\field_ui\EntityFormModeListBuilder.
Class
- EntityFormModeListBuilder
- Defines a class to build a listing of form mode entities.
Namespace
Drupal\field_uiCode
protected function isValidEntity($entity_type) {
return $this->entityTypes[$entity_type]
->hasFormClasses();
}