You are here

public static function EntityReferenceDependencyManagerInterface::getAccessDeniedReason in Entity Reference Integrity 8

Build an access denied reason string.

Parameters

\Drupal\Core\Entity\EntityInterface $entity: The entity that has dependents.

bool $translate: Optional boolean to translate the string. Defaults to TRUE.

Return value

string

2 methods override EntityReferenceDependencyManagerInterface::getAccessDeniedReason()
EntityReferenceDependencyManager::getAccessDeniedReason in src/EntityReferenceDependencyManager.php
Build an access denied reason string.
EntityReferenceIntegrityEntityHandler::getAccessDeniedReason in src/EntityReferenceIntegrityEntityHandler.php
Build an access denied reason string.

File

src/EntityReferenceDependencyManagerInterface.php, line 55

Class

EntityReferenceDependencyManagerInterface
An interface for calculating entity dependency.

Namespace

Drupal\entity_reference_integrity

Code

public static function getAccessDeniedReason(EntityInterface $entity, bool $translate = TRUE);