You are here

public static function BlockContentPermissionsAddPageController::create in Block Content Permissions 8

Override.

Add current_user.

Overrides BlockContentController::create

File

src/Controller/BlockContentPermissionsAddPageController.php, line 32

Class

BlockContentPermissionsAddPageController
Controller for the block content add page.

Namespace

Drupal\block_content_permissions\Controller

Code

public static function create(ContainerInterface $container) {
  $entity_manager = $container
    ->get('entity_type.manager');
  return new static($entity_manager
    ->getStorage('block_content'), $entity_manager
    ->getStorage('block_content_type'), $container
    ->get('theme_handler'), $container
    ->get('current_user'));
}