1.20.x userinterface.inc | public static UserInterface::createAccess($bundle = NULL, $account = NULL) |
Determines whether the given user has access to create this type of entity.
Parameters
string $bundle: (optional) The entity's bundle to check create access against.
User|AnonymousUser|object $account: (optional) The user to check for. Leave it to NULL to check for the global user.
Return value
bool: Whether access is allowed or not. If the entity type does not specify any access information, NULL is returned.
File
- includes/
userinterface.inc, line 43 - Provides the interface for user entities.
Class
- UserInterface
- Defines a common interface for user entities.
Code
public static function createAccess($bundle = NULL, $account = NULL);