public function ContentEntityViewModesExtractorInterface::getRenderedViewModes in Acquia Content Hub 8
Normalizes an object into a set of arrays/scalars.
Parameters
\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 value
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.
1 method overrides ContentEntityViewModesExtractorInterface::getRenderedViewModes()
- ContentEntityViewModesExtractor::getRenderedViewModes in src/
Normalizer/ ContentEntityViewModesExtractor.php - Renders all the view modes that are configured to be rendered.
File
- src/
Normalizer/ ContentEntityViewModesExtractorInterface.php, line 23
Class
- ContentEntityViewModesExtractorInterface
- Interface for View Modes Extractor.
Namespace
Drupal\acquia_contenthub\NormalizerCode
public function getRenderedViewModes(ContentEntityInterface $object);