protected function EntityExtraFieldListBuilder::getBaseEntityBundleType in Entity Extra Field 8
Same name and namespace in other branches
- 2.0.x src/Controller/EntityExtraFieldListBuilder.php \Drupal\entity_extra_field\Controller\EntityExtraFieldListBuilder::getBaseEntityBundleType()
Get base entity bundle type.
Return value
\Drupal\Core\Config\Entity\ConfigEntityInterface|boolean The configuration entity; otherwise NULL if it doesn't exist.
Throws
\Drupal\Component\Plugin\Exception\PluginNotFoundException
1 call to EntityExtraFieldListBuilder::getBaseEntityBundleType()
- EntityExtraFieldListBuilder::getEntityIds in src/
Controller/ EntityExtraFieldListBuilder.php - Loads entity IDs using a pager sorted by the entity id.
File
- src/
Controller/ EntityExtraFieldListBuilder.php, line 129
Class
- EntityExtraFieldListBuilder
- Define entity extra field list builder.
Namespace
Drupal\entity_extra_field\ControllerCode
protected function getBaseEntityBundleType() {
$entity_type_id = $this
->getBaseEntityTypeId();
$entity_bundle_type_id = $this->entityTypeManager
->getDefinition($entity_type_id)
->getBundleEntityType();
if (!isset($entity_bundle_type_id)) {
return NULL;
}
return $this->currentRouteMatch
->getParameter($entity_bundle_type_id);
}