EntityFormModeListBuilder::isValidEntity

protected EntityFormModeListBuilder::isValidEntity($entity_type)

Filters entities based on their form mode handlers.

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 21

Class

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

Namespace

Drupal\field_ui

Code

protected function isValidEntity($entity_type) {
  return $this->entityTypes[$entity_type]->hasFormClasses();
}
doc_Drupal
2016-10-29 09:06:36
Comments
Leave a Comment

Please login to continue.