public function ContentHubEntityTypeConfig::isEnableIndex in Acquia Content Hub 8
Check if this bundle is enabled.
Parameters
string $bundle: The entity bundle.
Return value
bool TRUE if enabled, FALSE otherwise.
Overrides ContentHubEntityTypeConfigInterface::isEnableIndex
3 calls to ContentHubEntityTypeConfig::isEnableIndex()
- ContentHubEntityTypeConfig::calculateDependencies in src/
Entity/ ContentHubEntityTypeConfig.php - Calculates dependencies and stores them in the dependency property.
- ContentHubEntityTypeConfig::setPreviewImageField in src/
Entity/ ContentHubEntityTypeConfig.php - Sets the preview image field for a specific bundle.
- ContentHubEntityTypeConfig::setPreviewImageStyle in src/
Entity/ ContentHubEntityTypeConfig.php - Sets the preview image style for a specific bundle.
File
- src/
Entity/ ContentHubEntityTypeConfig.php, line 66
Class
- ContentHubEntityTypeConfig
- Defines a ContentHubEntityTypeConfig configuration entity class.
Namespace
Drupal\acquia_contenthub\EntityCode
public function isEnableIndex($bundle) {
return !empty($this->bundles[$bundle]['enable_index']);
}