class LayoutService in Open Social 8.8
Same name and namespace in other branches
- 8.9 modules/social_features/social_core/src/Service/LayoutService.php \Drupal\social_core\Service\LayoutService
- 10.3.x modules/social_features/social_core/src/Service/LayoutService.php \Drupal\social_core\Service\LayoutService
- 10.0.x modules/social_features/social_core/src/Service/LayoutService.php \Drupal\social_core\Service\LayoutService
- 10.1.x modules/social_features/social_core/src/Service/LayoutService.php \Drupal\social_core\Service\LayoutService
- 10.2.x modules/social_features/social_core/src/Service/LayoutService.php \Drupal\social_core\Service\LayoutService
Class LayoutService.
@package Drupal\social_core\Service
Hierarchy
- class \Drupal\social_core\Service\LayoutService uses LayoutEntityHelperTrait
Expanded class hierarchy of LayoutService
1 file declares its use of LayoutService
- SocialCoreServiceProvider.php in modules/
social_features/ social_core/ src/ SocialCoreServiceProvider.php
File
- modules/
social_features/ social_core/ src/ Service/ LayoutService.php, line 13
Namespace
Drupal\social_core\ServiceView source
class LayoutService {
use LayoutEntityHelperTrait;
/**
* Determines if an entity can have a layout.
*
* @param \Drupal\Core\Entity\EntityInterface $entity
* The entity to check.
*
* @return bool
* TRUE if the entity can have a layout otherwise FALSE.
*/
public function isTrueLayoutCompatibleEntity(EntityInterface $entity) {
if (!\Drupal::moduleHandler()
->moduleExists('layout_builder')) {
return FALSE;
}
return $this
->isLayoutCompatibleEntity($entity);
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
LayoutEntityHelperTrait:: |
protected | property | The section storage manager. | 1 |
LayoutEntityHelperTrait:: |
protected | function | Gets the sections for an entity if any. | |
LayoutEntityHelperTrait:: |
protected | function | Gets components that have Inline Block plugins. | |
LayoutEntityHelperTrait:: |
protected | function | Gets revision IDs for layout sections. | |
LayoutEntityHelperTrait:: |
protected | function | Gets the section storage for an entity. | |
LayoutEntityHelperTrait:: |
protected | function | Determines if an entity is using a field for the layout override. | |
LayoutEntityHelperTrait:: |
protected | function | Determines if an entity can have a layout. | |
LayoutEntityHelperTrait:: |
protected | function | Determines if the original entity used the default section storage. | |
LayoutEntityHelperTrait:: |
private | function | Gets the section storage manager. | 1 |
LayoutService:: |
public | function | Determines if an entity can have a layout. |