public function SimplenewsSourceEntity::setEntity in Simplenews 7.2
Set the entity of this source.
1 call to SimplenewsSourceEntity::setEntity()
- SimplenewsSourceEntity::__construct in includes/
simplenews.source.inc - Implements SimplenewsSourceEntityInterface::_construct();
1 method overrides SimplenewsSourceEntity::setEntity()
- SimplenewsSourceNode::setEntity in includes/
simplenews.source.inc - Overrides SimplenewsSourceEntity::setEntity().
File
- includes/
simplenews.source.inc, line 404 - Contains SimplenewsSource interface and implementations.
Class
- SimplenewsSourceEntity
- Default source class for entities.
Code
public function setEntity($entity, $entity_type) {
$this->entity_type = $entity_type;
$this->entity = $entity;
}