interface ContentEntityViewModesExtractorInterface in Acquia Content Hub 8
Interface for View Modes Extractor.
Hierarchy
- interface \Drupal\acquia_contenthub\Normalizer\ContentEntityViewModesExtractorInterface
Expanded class hierarchy of ContentEntityViewModesExtractorInterface
All classes that implement ContentEntityViewModesExtractorInterface
File
- src/
Normalizer/ ContentEntityViewModesExtractorInterface.php, line 10
Namespace
Drupal\acquia_contenthub\NormalizerView source
interface ContentEntityViewModesExtractorInterface {
/**
* Normalizes an object into a set of arrays/scalars.
*
* @param \Drupal\Core\Entity\ContentEntityInterface $object
* Object to normalize. Due to the constraints of the class, we know that
* the object will be of the ContentEntityInterface type.
*
* @return array|null
* Returns the extracted view modes or null if the given object is not
* supported or if it was not configured in the Content Hub settings.
*/
public function getRenderedViewModes(ContentEntityInterface $object);
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
ContentEntityViewModesExtractorInterface:: |
public | function | Normalizes an object into a set of arrays/scalars. | 1 |