public function CheckedEntityCache::isChecked in Permissions by Term 8
Same name and namespace in other branches
- 8.2 modules/permissions_by_entity/src/Service/CheckedEntityCache.php \Drupal\permissions_by_entity\Service\CheckedEntityCache::isChecked()
Returns if an entity has already been checked.
Parameters
\Drupal\Core\Entity\FieldableEntityInterface $entity: A fieldable entity.
Return value
bool Returns TRUE if the entity has already been checked, otherwise FALSE.
1 call to CheckedEntityCache::isChecked()
- CheckedEntityCache::add in modules/
permissions_by_entity/ src/ Service/ CheckedEntityCache.php - Adds a fieldable entity to the cache.
File
- modules/
permissions_by_entity/ src/ Service/ CheckedEntityCache.php, line 30
Class
- CheckedEntityCache
- Class CheckedEntityCache.
Namespace
Drupal\permissions_by_entity\ServiceCode
public function isChecked(FieldableEntityInterface $entity) {
return in_array($entity, $this->entities, TRUE);
}