@@ 178-186 (lines=9) @@ | ||
175 | $this->collection_details |
|
176 | ); |
|
177 | $identifier = $this->setIdentifier($entity, $identifier); |
|
178 | if ($this->collection->has($identifier)) { |
|
179 | do_action( |
|
180 | 'FHEE__CollectionLoader__addEntityToCollection__entity_already_added', |
|
181 | $this, |
|
182 | $this->collection_details->collectionName(), |
|
183 | $this->collection_details |
|
184 | ); |
|
185 | return CollectionLoader::ENTITY_EXISTS; |
|
186 | } |
|
187 | if ($this->collection->add($entity, $identifier)) { |
|
188 | do_action( |
|
189 | 'FHEE__CollectionLoader__addEntityToCollection__entity_added', |
|
@@ 187-195 (lines=9) @@ | ||
184 | ); |
|
185 | return CollectionLoader::ENTITY_EXISTS; |
|
186 | } |
|
187 | if ($this->collection->add($entity, $identifier)) { |
|
188 | do_action( |
|
189 | 'FHEE__CollectionLoader__addEntityToCollection__entity_added', |
|
190 | $this, |
|
191 | $this->collection_details->collectionName(), |
|
192 | $this->collection_details |
|
193 | ); |
|
194 | return CollectionLoader::ENTITY_ADDED; |
|
195 | } |
|
196 | do_action( |
|
197 | 'FHEE__CollectionLoader__addEntityToCollection__entity_not_added', |
|
198 | $this, |