abstract public function InstallingTrait::isNew in Search API 8
Determines whether the entity is new.
Usually an entity is new if no ID exists for it yet. However, entities may be enforced to be new with existing IDs too.
Return value
bool TRUE if the entity is new, or FALSE if the entity has already been saved.
See also
\Drupal\Core\Entity\EntityInterface::isNew()
1 call to InstallingTrait::isNew()
- InstallingTrait::isInstallingFromExtension in src/
Entity/ InstallingTrait.php - Determines if this config entity is being installed from an extension.
File
- src/
Entity/ InstallingTrait.php, line 36
Class
- InstallingTrait
- Provides a helper method for checking a saved config entity's source.
Namespace
Drupal\search_api\EntityCode
public abstract function isNew();