EntityDisplayModeListBuilder::isValidEntity

protected EntityDisplayModeListBuilder::isValidEntity($entity_type)

Filters entities based on their view builder handlers.

Parameters

$entity_type: The entity type of the entity that needs to be validated.

Return value

bool TRUE if the entity has the correct view builder handler, FALSE if the entity doesn't have the correct view builder handler.

File

core/modules/field_ui/src/EntityDisplayModeListBuilder.php, line 137

Class

EntityDisplayModeListBuilder
Defines a class to build a listing of view mode entities.

Namespace

Drupal\field_ui

Code

protected function isValidEntity($entity_type) {
  return $this->entityTypes[$entity_type]->get('field_ui_base_route') && $this->entityTypes[$entity_type]->hasViewBuilderClass();
}
doc_Drupal
2016-10-29 09:05:49
Comments
Leave a Comment

Please login to continue.