You are here

public function ContentHubEntityTypeConfig::getPreviewImageStyle in Acquia Content Hub 8

Obtains the Preview Image Style for this particular bundle.

Parameters

string $bundle: The entity bundle.

Return value

string|null The preview image style if exists, NULL otherwise.

Overrides ContentHubEntityTypeConfigInterface::getPreviewImageStyle

1 call to ContentHubEntityTypeConfig::getPreviewImageStyle()
ContentHubEntityTypeConfig::calculateDependenciesForPreviewImage in src/Entity/ContentHubEntityTypeConfig.php
Calculates dependencies for Preview Image.

File

src/Entity/ContentHubEntityTypeConfig.php, line 131

Class

ContentHubEntityTypeConfig
Defines a ContentHubEntityTypeConfig configuration entity class.

Namespace

Drupal\acquia_contenthub\Entity

Code

public function getPreviewImageStyle($bundle) {
  return isset($this->bundles[$bundle]['preview_image_style']) ? $this->bundles[$bundle]['preview_image_style'] : NULL;
}