1 entity.class.inc public static EntityInterface::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

core/modules/entity/entity.class.inc, line 89
Provides an interface and a base class for entities.

Class

EntityInterface
Defines a common interface for all entity objects.

Code

public static function createAccess($bundle = NULL, $account = NULL);