public static function MediaBundle::exists in Media entity 8
Checks if the bundle exists.
Parameters
int $id: The Media bundle ID.
Return value
bool TRUE if the bundle with the given ID exists, FALSE otherwise.
Overrides MediaBundleInterface::exists
File
- src/
Entity/ MediaBundle.php, line 155
Class
- MediaBundle
- Defines the Media bundle configuration entity.
Namespace
Drupal\media_entity\EntityCode
public static function exists($id) {
return (bool) static::load($id);
}