You are here

interface ContentHubEntityTypeConfigInterface in Acquia Content Hub 8

Interface for ContentHubEntityTypeConfig class.

Hierarchy

Expanded class hierarchy of ContentHubEntityTypeConfigInterface

All classes that implement ContentHubEntityTypeConfigInterface

1 file declares its use of ContentHubEntityTypeConfigInterface
ContentHubEntityTypeConfig.php in src/Entity/ContentHubEntityTypeConfig.php

File

src/ContentHubEntityTypeConfigInterface.php, line 8

Namespace

Drupal\acquia_contenthub
View source
interface ContentHubEntityTypeConfigInterface {

  /**
   * Obtains the list of bundles.
   */
  public function getBundles();

  /**
   * Checks whether this bundle is enabled.
   *
   * @param string $bundle
   *   The bundle to check for.
   *
   * @return bool
   *   TRUE if the the bundle is enabled, FALSE otherwise.
   */
  public function isEnableIndex($bundle);

  /**
   * Checks if the view modes rendering is enabled for this bundle.
   *
   * @param string $bundle
   *   The bundle to check for.
   *
   * @return bool
   *   TRUE if view modes rendering is enabled for this bundle, FALSE otherwise.
   */
  public function isEnabledViewModes($bundle);

  /**
   * Obtains the list of enabled view modes for a particular bundle.
   *
   * @param string $bundle
   *   The bundle to check for.
   *
   * @return array
   *   An array of view modes.
   */
  public function getRenderingViewModes($bundle);

  /**
   * Sets the bundle array for this configuration entity.
   *
   * @param array $bundles
   *   An array of bundles.
   */
  public function setBundles(array $bundles);

  /**
   * Obtains the Preview Image Field for this particular bundle.
   *
   * @param string $bundle
   *   The entity bundle.
   *
   * @return string|null
   *   The preview image field if exists, NULL otherwise.
   */
  public function getPreviewImageField($bundle);

  /**
   * Obtains the Preview Image Style for this particular bundle.
   *
   * @param string $bundle
   *   The entity bundle.
   *
   * @return string|null
   *   The preview image style if exists, NULL otherwise.
   */
  public function getPreviewImageStyle($bundle);

  /**
   * Sets the preview image field for a specific bundle.
   *
   * @param string $bundle
   *   The entity bundle.
   * @param string $image_field
   *   The preview image field.
   */
  public function setPreviewImageField($bundle, $image_field);

  /**
   * Sets the preview image style for a specific bundle.
   *
   * @param string $bundle
   *   The entity bundle.
   * @param string $image_style
   *   The preview image style.
   */
  public function setPreviewImageStyle($bundle, $image_style);

  /**
   * Save the settings.
   */
  public function save();

}

Members

Namesort descending Modifiers Type Description Overrides
ContentHubEntityTypeConfigInterface::getBundles public function Obtains the list of bundles. 1
ContentHubEntityTypeConfigInterface::getPreviewImageField public function Obtains the Preview Image Field for this particular bundle. 1
ContentHubEntityTypeConfigInterface::getPreviewImageStyle public function Obtains the Preview Image Style for this particular bundle. 1
ContentHubEntityTypeConfigInterface::getRenderingViewModes public function Obtains the list of enabled view modes for a particular bundle. 1
ContentHubEntityTypeConfigInterface::isEnabledViewModes public function Checks if the view modes rendering is enabled for this bundle. 1
ContentHubEntityTypeConfigInterface::isEnableIndex public function Checks whether this bundle is enabled. 1
ContentHubEntityTypeConfigInterface::save public function Save the settings.
ContentHubEntityTypeConfigInterface::setBundles public function Sets the bundle array for this configuration entity. 1
ContentHubEntityTypeConfigInterface::setPreviewImageField public function Sets the preview image field for a specific bundle. 1
ContentHubEntityTypeConfigInterface::setPreviewImageStyle public function Sets the preview image style for a specific bundle. 1