public function BackgroundImageInterface::getTargetEntityBundle in Background Image 8
Same name and namespace in other branches
- 2.x src/BackgroundImageInterface.php \Drupal\background_image\BackgroundImageInterface::getTargetEntityBundle()
- 2.0.x src/BackgroundImageInterface.php \Drupal\background_image\BackgroundImageInterface::getTargetEntityBundle()
Retrieves the target entity bundle, if the type is supported and exists.
Parameters
int $type: The type. Defaults to the currently set type.
string $target: A target identifier split by a colon (:) where the entity type is on the left and the entity bundle identifier to load is on the right. Defaults to the currently set target.
Return value
\Drupal\Core\Entity\EntityTypeInterface|\Drupal\Core\Entity\EntityInterface|null The target EntityType object if it has bundle support or an Entity object if it does not. NULL if not a valid target.
1 method overrides BackgroundImageInterface::getTargetEntityBundle()
- BackgroundImage::getTargetEntityBundle in src/
Entity/ BackgroundImage.php - Retrieves the target entity bundle, if the type is supported and exists.
File
- src/
BackgroundImageInterface.php, line 255
Class
- BackgroundImageInterface
- Provides an interface defining a Background Image entity.
Namespace
Drupal\background_imageCode
public function getTargetEntityBundle($type = NULL, $target = NULL);