function EntityView::getAccessRecursion

1 call to EntityView::getAccessRecursion()
EntityView::access in src/Plugin/Block/EntityView.php

File

src/Plugin/Block/EntityView.php, line 114

Class

EntityView
Provides a block to view a specific entity.

Namespace

Drupal\ctools\Plugin\Block

Code

protected function getAccessRecursion(EntityInterface $entity, array $config) {
    return self::$recusion[$entity->uuid()][$config['view_mode']] ?? 0;
}