function MaskContentEntityStorage::has

Same name and namespace in other branches
  1. 4.0.x modules/ctools_entity_mask/src/MaskContentEntityStorage.php \Drupal\ctools_entity_mask\MaskContentEntityStorage::has()

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 TRUE if this entity exists in storage, FALSE otherwise.

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;
}