protected function Library::getEntityTypes in Layout builder library 8
Returns an array of relevant entity types.
Return value
\Drupal\Core\Entity\EntityTypeInterface[] An array of entity types.
1 call to Library::getEntityTypes()
- Library::buildRoutes in src/Plugin/ SectionStorage/ Library.php 
- Provides the routes needed for Layout Builder UI.
File
- src/Plugin/ SectionStorage/ Library.php, line 182 
Class
- Library
- Defines a class for library based layout storage.
Namespace
Drupal\layout_library\Plugin\SectionStorageCode
protected function getEntityTypes() {
  return array_filter($this->entityTypeManager
    ->getDefinitions(), function (EntityTypeInterface $entity_type) {
    return $entity_type
      ->entityClassImplements(FieldableEntityInterface::class) && $entity_type
      ->hasViewBuilderClass() && $entity_type
      ->get('field_ui_base_route');
  });
}