/** * {@inheritdoc} */ public function save(EntityInterface $entity) { if (strpos($entity->id(), ':') !== FALSE) { throw new EntityStorageException(SafeMarkup::format("Dynamic migration %id can't be saved", array('$%id' => $entity->id()))); } return parent::save($entity); }
/** * {@inheritdoc} */ public function save(EntityInterface $entity) { if (strpos($entity->id(), ':') !== FALSE) { throw new EntityStorageException("Dynamic migration '{$entity->id()}' can't be saved"); } return parent::save($entity); }