You are here

protected function MaskContentEntityStorage::has in Chaos Tool Suite (ctools) 8.3

Determines if this entity already exists in storage.

Parameters

int|string $id: The original entity ID.

\Drupal\Core\Entity\EntityInterface $entity: The entity being saved.

Return value

bool

Overrides EntityStorageBase::has

File

modules/ctools_entity_mask/src/MaskContentEntityStorage.php, line 63

Class

MaskContentEntityStorage
Storage handler that simulates a full save, without writing to the database.

Namespace

Drupal\ctools_entity_mask

Code

protected function has($id, EntityInterface $entity) {
  return FALSE;
}