public function ContentHubEntityTypeConfig::getPreviewImageField in Acquia Content Hub 8
Obtains the Preview Image Field for this particular bundle.
Parameters
string $bundle: The entity bundle.
Return value
string|null The preview image field if exists, NULL otherwise.
Overrides ContentHubEntityTypeConfigInterface::getPreviewImageField
1 call to ContentHubEntityTypeConfig::getPreviewImageField()
- ContentHubEntityTypeConfig::calculateDependenciesForPreviewImage in src/
Entity/ ContentHubEntityTypeConfig.php - Calculates dependencies for Preview Image.
File
- src/
Entity/ ContentHubEntityTypeConfig.php, line 118
Class
- ContentHubEntityTypeConfig
- Defines a ContentHubEntityTypeConfig configuration entity class.
Namespace
Drupal\acquia_contenthub\EntityCode
public function getPreviewImageField($bundle) {
return isset($this->bundles[$bundle]['preview_image_field']) ? $this->bundles[$bundle]['preview_image_field'] : NULL;
}