You are here

interface ContentEntityViewModesExtractorInterface in Acquia Content Hub 8

Interface for View Modes Extractor.

Hierarchy

Expanded class hierarchy of ContentEntityViewModesExtractorInterface

All classes that implement ContentEntityViewModesExtractorInterface

File

src/Normalizer/ContentEntityViewModesExtractorInterface.php, line 10

Namespace

Drupal\acquia_contenthub\Normalizer
View 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

Namesort descending Modifiers Type Description Overrides
ContentEntityViewModesExtractorInterface::getRenderedViewModes public function Normalizes an object into a set of arrays/scalars. 1