You are here

protected function ContentEntity::hasBundles in Search API 8

Determines whether the entity type supports bundles.

Return value

bool TRUE if the entity type supports bundles, FALSE otherwise.

5 calls to ContentEntity::hasBundles()
ContentEntity::buildConfigurationForm in src/Plugin/search_api/datasource/ContentEntity.php
Form constructor.
ContentEntity::defaultConfiguration in src/Plugin/search_api/datasource/ContentEntity.php
Gets default configuration for this plugin.
ContentEntity::getBundles in src/Plugin/search_api/datasource/ContentEntity.php
Retrieves the bundles associated to this datasource.
ContentEntity::getEntityBundles in src/Plugin/search_api/datasource/ContentEntity.php
Retrieves all bundles of this datasource's entity type.
ContentEntity::getPartialItemIds in src/Plugin/search_api/datasource/ContentEntity.php

File

src/Plugin/search_api/datasource/ContentEntity.php, line 753

Class

ContentEntity
Represents a datasource which exposes the content entities.

Namespace

Drupal\search_api\Plugin\search_api\datasource

Code

protected function hasBundles() {
  return $this
    ->getEntityType()
    ->hasKey('bundle');
}